]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/go: fix spelling in proxy documentation
authorTobias Klauser <tklauser@distanz.ch>
Fri, 10 Aug 2018 06:51:54 +0000 (08:51 +0200)
committerBryan C. Mills <bcmills@google.com>
Fri, 10 Aug 2018 15:03:46 +0000 (15:03 +0000)
After running mkalldocs.sh this also adds some previously missing parts
to alldocs.go

Change-Id: Ifa624c54543fd31d699a0d4bb5df7b1969bf941c
Reviewed-on: https://go-review.googlesource.com/128915
Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Bryan C. Mills <bcmills@google.com>
src/cmd/go/alldocs.go
src/cmd/go/internal/modfetch/proxy.go

index aea77175e89c03489e54e7279a4ace957fe10344..1292596697d0383b08270300aa9d31413774ed1b 100644 (file)
 // with a comment line "# package" or "# module" giving the target
 // package or module. Subsequent lines give a path through the import
 // graph, one package per line. If the package or module is not
-// referenced from the main module the stanza will be empty except for
-// the comment line.
+// referenced from the main module, the stanza will display a single
+// parenthesized note indicating that fact.
+//
+// For example:
+//
+//     $ go mod why golang.org/x/text/language golang.org/x/text/encoding
+//     # golang.org/x/text/language
+//     rsc.io/quote
+//     rsc.io/sampler
+//     golang.org/x/text/language
+//
+//     # golang.org/x/text/encoding
+//     (main module does not need package golang.org/x/text/encoding)
+//     $
 //
 //
 // Compile and run Go program
 //
 // To avoid problems when serving from case-sensitive file systems,
 // the <module> and <version> elements are case-encoded, replacing every
-// uppercase letter with an exclamation mark followed by the correponding
+// uppercase letter with an exclamation mark followed by the corresponding
 // lower-case letter: github.com/Azure encodes as github.com/!azure.
 //
 // The JSON-formatted metadata about a given module corresponds to
index 693eb18b49be85db50b8a2797ce72b0944f249a0..5f856b80d2e16a1b2d69145856736fb93b82b4cc 100644 (file)
@@ -55,7 +55,7 @@ for that version of the given module.
 
 To avoid problems when serving from case-sensitive file systems,
 the <module> and <version> elements are case-encoded, replacing every
-uppercase letter with an exclamation mark followed by the correponding
+uppercase letter with an exclamation mark followed by the corresponding
 lower-case letter: github.com/Azure encodes as github.com/!azure.
 
 The JSON-formatted metadata about a given module corresponds to