Updates #27376
Change-Id: I0ceb672a9fcd7bbf491be1577d7f135ef35b2561
Reviewed-on: https://go-review.googlesource.com/133455
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
// "Today is 30 Aug\n"
}
+func ExampleFprint() {
+ n, err := fmt.Fprint(os.Stdout, "there", "are", 99, "gophers", "\n")
+ if err != nil {
+ panic(err)
+ }
+ fmt.Print(n)
+ // Output:
+ // thereare99gophers
+ // 18
+}
+
func ExampleFprintln() {
n, err := fmt.Fprintln(os.Stdout, "there", "are", 99, "gophers")
if err != nil {