From f6ff936b5658c179ebcfdcd53609c7f675c70a76 Mon Sep 17 00:00:00 2001 From: Rob Pike Date: Mon, 25 Aug 2014 18:26:25 -0700 Subject: go.blog/constants: use a format with Printf Otherwise the prose around this snippet is confusing. LGTM=adg R=adg CC=golang-codereviews https://golang.org/cl/130550043 --- content/constants/default1.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/constants/default1.go b/content/constants/default1.go index 914e4b7..0f7909c 100644 --- a/content/constants/default1.go +++ b/content/constants/default1.go @@ -6,6 +6,6 @@ import "fmt" func main() { // START OMIT - fmt.Printf("Hello, 世界") + fmt.Printf("%s", "Hello, 世界") // STOP OMIT } -- cgit v1.2.3