aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Griesemer <gri@golang.org>2017-04-27 17:54:49 -0700
committerRobert Griesemer <gri@golang.org>2017-04-28 16:37:31 +0000
commit50f67add81eb9fa032f2e87c639fc42f0cc9de72 (patch)
tree864472db67eafbc401ba84efc240e7839bd3720a
parent86cfe93515cf3387e4a1e0a3d07e4b44e34c7e3a (diff)
downloadgo-50f67add81eb9fa032f2e87c639fc42f0cc9de72.tar.xz
spec: clarify admissible argument types for print, println
Fixes #19885. Change-Id: I55420aace1b0f714df2d6460d2d1595f6863dd06 Reviewed-on: https://go-review.googlesource.com/42023 Reviewed-by: Rob Pike <r@golang.org> Reviewed-by: Ian Lance Taylor <iant@golang.org> Reviewed-by: Russ Cox <rsc@golang.org>
-rw-r--r--doc/go_spec.html7
1 files changed, 6 insertions, 1 deletions
diff --git a/doc/go_spec.html b/doc/go_spec.html
index 769231819c..ba5ce894d2 100644
--- a/doc/go_spec.html
+++ b/doc/go_spec.html
@@ -1,6 +1,6 @@
<!--{
"Title": "The Go Programming Language Specification",
- "Subtitle": "Version of April 17, 2017",
+ "Subtitle": "Version of April 28, 2017",
"Path": "/ref/spec"
}-->
@@ -5965,6 +5965,11 @@ print prints all arguments; formatting of arguments is implementation-speci
println like print but prints spaces between arguments and a newline at the end
</pre>
+<p>
+Implementation restriction: <code>print</code> and <code>println</code> need not
+accept arbitrary argument types, but printing of boolean, numeric, and string
+<a href="#Types">types</a> must be supported.
+</p>
<h2 id="Packages">Packages</h2>