Commit a7d89572 authored by Tim Cooper's avatar Tim Cooper Committed by Brad Fitzpatrick

doc: fix fmt usage in code.html

Fixes #25876

Change-Id: I149dbb2afef13cc13fb5722d930377ed918d7e3c
Reviewed-on: https://go-review.googlesource.com/118717Reviewed-by: default avatarBrad Fitzpatrick <bradfitz@golang.org>
parent fc0e1d2b
...@@ -240,7 +240,7 @@ package main ...@@ -240,7 +240,7 @@ package main
import "fmt" import "fmt"
func main() { func main() {
fmt.Printf("Hello, world.\n") fmt.Println("Hello, world.")
} }
</pre> </pre>
...@@ -395,7 +395,7 @@ import ( ...@@ -395,7 +395,7 @@ import (
) )
func main() { func main() {
fmt.Printf(stringutil.Reverse("!oG ,olleH")) fmt.Println(stringutil.Reverse("!oG ,olleH"))
} }
</pre> </pre>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment