From 335e72bcb6a5f670e2b3c65170c4287ca7265934 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Mart=C3=AD?= Date: Thu, 23 Sep 2021 11:46:28 +0100 Subject: [PATCH] cmd/go: fix indentation of -workfile help text MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit While reading the help text for #48576, I noticed that the output was misaligned. Turns out it's because two lines have space indentation, while the rest use tab indentation. Fix that. Change-Id: Ie7c473d892ca13852fa2134f3cdef21e9210e02e Reviewed-on: https://go-review.googlesource.com/c/go/+/351750 Trust: Daniel Martí Run-TryBot: Daniel Martí TryBot-Result: Go Bot Reviewed-by: Jay Conrod --- src/cmd/go/alldocs.go | 4 ++-- src/cmd/go/internal/work/build.go | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/cmd/go/alldocs.go b/src/cmd/go/alldocs.go index 744d462c005..0036d8615fe 100644 --- a/src/cmd/go/alldocs.go +++ b/src/cmd/go/alldocs.go @@ -167,8 +167,8 @@ // directory, but it is not accessed. When -modfile is specified, an // alternate go.sum file is also used: its path is derived from the // -modfile flag by trimming the ".mod" extension and appending ".sum". -// -workfile file -// in module aware mode, use the given go.work file as a workspace file. +// -workfile file +// in module aware mode, use the given go.work file as a workspace file. // By default or when -workfile is "auto", the go command searches for a // file named go.work in the current directory and then containing directories // until one is found. If a valid go.work file is found, the modules diff --git a/src/cmd/go/internal/work/build.go b/src/cmd/go/internal/work/build.go index e5d7f4a8fd1..55e4954eee5 100644 --- a/src/cmd/go/internal/work/build.go +++ b/src/cmd/go/internal/work/build.go @@ -121,8 +121,8 @@ and test commands: directory, but it is not accessed. When -modfile is specified, an alternate go.sum file is also used: its path is derived from the -modfile flag by trimming the ".mod" extension and appending ".sum". - -workfile file - in module aware mode, use the given go.work file as a workspace file. + -workfile file + in module aware mode, use the given go.work file as a workspace file. By default or when -workfile is "auto", the go command searches for a file named go.work in the current directory and then containing directories until one is found. If a valid go.work file is found, the modules