From 1e88d91eb26fbbf17a1ac4d8b0967d17905a2aba Mon Sep 17 00:00:00 2001 From: Tobias Klauser Date: Wed, 19 Dec 2018 09:36:11 +0100 Subject: [PATCH] doc/go1.12: fix typos and code formatting Fix two typos and don't indent the go vet example. Change-Id: Iccec56ca5decfbae45547a00115500ed13b703e1 Reviewed-on: https://go-review.googlesource.com/c/154721 Reviewed-by: Ian Lance Taylor --- doc/go1.12.html | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/doc/go1.12.html b/doc/go1.12.html index 2b64adffef..4fed4b7fc4 100644 --- a/doc/go1.12.html +++ b/doc/go1.12.html @@ -113,10 +113,10 @@ Do not send CLs removing the interior tags from such phrases. As part of this change, the experimental -shadow option is no longer available with go vet. Checking for variable shadowing may now be done using -
-    go install golang.org/x/tools/go/analysis/passes/shadow/cmd/shadow
-    go vet -vettool=$(which shadow)
-  
+
+go install golang.org/x/tools/go/analysis/passes/shadow/cmd/shadow
+go vet -vettool=$(which shadow)
+

Build cache requirement

@@ -505,7 +505,7 @@ for { The File type has a new LineStart field, which returns the position of the start of a given line. This is especially useful - in programs that occassionally handle non-Go files, such as assembly, but wish to use + in programs that occasionally handle non-Go files, such as assembly, but wish to use the token.Pos mechanism to identify file positions.

@@ -662,7 +662,7 @@ for { an iterator for ranging over a map. This type is exposed through the Value type's new MapRange method. - This follows the same iteration semantics as a range statment, with Next + This follows the same iteration semantics as a range statement, with Next to advance the iterator, and Key/Value to access each entry.

-- 2.50.0