mirror of
https://github.com/golang/go.git
synced 2025-05-29 03:11:26 +00:00
spec: a couple of minor tweaks to the wording of the import section
- remove ambiguous 'it' - use a lower-case PackageName in the example R=golang-dev, dsymonds CC=golang-dev https://golang.org/cl/6552057
This commit is contained in:
parent
658482d70f
commit
b51ad9cf45
@ -1,6 +1,6 @@
|
|||||||
<!--{
|
<!--{
|
||||||
"Title": "The Go Programming Language Specification",
|
"Title": "The Go Programming Language Specification",
|
||||||
"Subtitle": "Version of September 18, 2012",
|
"Subtitle": "Version of September 22, 2012",
|
||||||
"Path": "/ref/spec"
|
"Path": "/ref/spec"
|
||||||
}-->
|
}-->
|
||||||
|
|
||||||
@ -5177,7 +5177,7 @@ An implementation may require that all source files for a package inhabit the sa
|
|||||||
An import declaration states that the source file containing the declaration
|
An import declaration states that the source file containing the declaration
|
||||||
depends on functionality of the <i>imported</i> package
|
depends on functionality of the <i>imported</i> package
|
||||||
(<a href="#Program_initialization_and_execution">§Program initialization and execution</a>)
|
(<a href="#Program_initialization_and_execution">§Program initialization and execution</a>)
|
||||||
and it enables access to <a href="#Exported_identifiers">exported</a> identifiers
|
and enables access to <a href="#Exported_identifiers">exported</a> identifiers
|
||||||
of that package.
|
of that package.
|
||||||
The import names an identifier (PackageName) to be used for access and an ImportPath
|
The import names an identifier (PackageName) to be used for access and an ImportPath
|
||||||
that specifies the package to be imported.
|
that specifies the package to be imported.
|
||||||
@ -5231,7 +5231,7 @@ various types of import declaration.
|
|||||||
Import declaration Local name of Sin
|
Import declaration Local name of Sin
|
||||||
|
|
||||||
import "lib/math" math.Sin
|
import "lib/math" math.Sin
|
||||||
import M "lib/math" M.Sin
|
import m "lib/math" m.Sin
|
||||||
import . "lib/math" Sin
|
import . "lib/math" Sin
|
||||||
</pre>
|
</pre>
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user