]> Cypherpunks repositories - gostls13.git/commitdiff
plugin: fix doc example fmt usage
authorLeon Klingele <git@leonklingele.de>
Fri, 4 Nov 2016 23:57:45 +0000 (00:57 +0100)
committerIan Lance Taylor <iant@golang.org>
Sat, 5 Nov 2016 00:23:55 +0000 (00:23 +0000)
Change-Id: I0520a37a48a56d231a8ac2dc58b2bf1762282760
Reviewed-on: https://go-review.googlesource.com/32795
Reviewed-by: Ian Lance Taylor <iant@golang.org>
src/plugin/plugin.go

index e812a2f677a6e65a39ab7380f37a690b90a05480..5c822bd9ba5e50768f93123483efbe3dfd704a6e 100644 (file)
@@ -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