Skip to content

Commit bab5536

Browse files
committed
code.html: update to reflect that package names need not be unique
Fixes golang#1507. R=golang-dev, ehog.hedge, rsc CC=golang-dev https://golang.org/cl/4160049
1 parent 888ab02 commit bab5536

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

doc/code.html

+3-3
Original file line numberDiff line numberDiff line change
@@ -160,9 +160,9 @@ <h3>Go source files</h3>
160160
Go's convention is that the package name is the last element of the
161161
import path: the package imported as <code>"crypto/rot13"</code>
162162
should be named <code>rot13</code>.
163-
At the moment, the Go tools impose a restriction that package names are unique
164-
across all packages linked into a single binary, but that restriction
165-
will be lifted soon.
163+
There is no requirement that package names be unique
164+
across all packages linked into a single binary,
165+
only that the import paths (their full file names) be unique.
166166
</p>
167167

168168
<p>

0 commit comments

Comments
 (0)