From: Robert Griesemer Date: Fri, 28 Apr 2017 00:54:49 +0000 (-0700) Subject: spec: clarify admissible argument types for print, println X-Git-Tag: go1.9beta1~410 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=50f67add81eb9fa032f2e87c639fc42f0cc9de72;p=gostls13.git 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 Reviewed-by: Ian Lance Taylor Reviewed-by: Russ Cox --- 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 @@ @@ -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 +

+Implementation restriction: print and println need not +accept arbitrary argument types, but printing of boolean, numeric, and string +types must be supported. +

Packages