From 227fe5f64e22d98e62e4e5165bffc3d6f8ec80b9 Mon Sep 17 00:00:00 2001 From: Rob Pike Date: Tue, 14 Jan 2014 15:16:01 -0800 Subject: [PATCH] spec: tighten the wording around . imports Make it clear that if you do a . import, you cannot use a qualified identifier. R=gri CC=golang-codereviews https://golang.org/cl/52390043 --- doc/go_spec.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/doc/go_spec.html b/doc/go_spec.html index 06f0fec83a..3b6769d740 100644 --- a/doc/go_spec.html +++ b/doc/go_spec.html @@ -1,6 +1,6 @@ @@ -5669,7 +5669,7 @@ If the PackageName is omitted, it defaults to the identifier specified in the If an explicit period (.) appears instead of a name, all the package's exported identifiers declared in that package's package block will be declared in the importing source -file's file block and can be accessed without a qualifier. +file's file block and must be accessed without a qualifier.

@@ -5693,7 +5693,7 @@ Assume we have compiled a package containing the package clause package math, which exports function Sin, and installed the compiled package in the file identified by "lib/math". -This table illustrates how Sin may be accessed in files +This table illustrates how Sin is accessed in files that import the package after the various types of import declaration.

-- 2.48.1