From: Leon Klingele Date: Fri, 4 Nov 2016 23:57:45 +0000 (+0100) Subject: plugin: fix doc example fmt usage X-Git-Tag: go1.8beta1~297 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=c350c5cfdc5a6ed1a135c06517ef29cdd716a935;p=gostls13.git plugin: fix doc example fmt usage Change-Id: I0520a37a48a56d231a8ac2dc58b2bf1762282760 Reviewed-on: https://go-review.googlesource.com/32795 Reviewed-by: Ian Lance Taylor --- diff --git a/src/plugin/plugin.go b/src/plugin/plugin.go index e812a2f677..5c822bd9ba 100644 --- a/src/plugin/plugin.go +++ b/src/plugin/plugin.go @@ -51,7 +51,7 @@ func (p *Plugin) Lookup(symName string) (Symbol, error) { // // var V int // -// func F() { fmt.Println("Hello, number %d", V) } +// func F() { fmt.Printf("Hello, number %d\n", V) } // // may be loaded with the Open function and then the exported package // symbols V and F can be accessed