From 50f67add81eb9fa032f2e87c639fc42f0cc9de72 Mon Sep 17 00:00:00 2001 From: Robert Griesemer Date: Thu, 27 Apr 2017 17:54:49 -0700 Subject: [PATCH] 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 --- doc/go_spec.html | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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

-- 2.48.1