From d26d5e6403613f989e123ee492bd8d63c113e725 Mon Sep 17 00:00:00 2001
From: =?utf8?q?R=C3=A9my=20Oudompheng?=
Date: Mon, 29 Jul 2013 00:57:19 +0200
Subject: [PATCH] effective_go.html: make snippets look formatted.
R=golang-dev, bradfitz
CC=golang-dev
https://golang.org/cl/11991043
---
doc/effective_go.html | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/doc/effective_go.html b/doc/effective_go.html
index 0645f76210..1ca9bd58d5 100644
--- a/doc/effective_go.html
+++ b/doc/effective_go.html
@@ -882,7 +882,7 @@ func nextInt(b []byte, i int) (int, int) {
}
x := 0
for ; i < len(b) && isDigit(b[i]); i++ {
- x = x*10 + int(b[i])-'0'
+ x = x*10 + int(b[i]) - '0'
}
return x, i
}
@@ -1496,7 +1496,7 @@ with colon-separated key-value pairs,
so it's easy to build them during initialization.
-var timeZone = map[string] int {
+var timeZone = map[string]int{
"UTC": 0*60*60,
"EST": -5*60*60,
"CST": -6*60*60,
@@ -1523,7 +1523,7 @@ Set the map entry to true
to put the value in the set, and then
test it by simple indexing.
-attended := map[string] bool {
+attended := map[string]bool{
"Ann": true,
"Joe": true,
...
@@ -3437,7 +3437,7 @@ the parse stack by hand:
-if pos==0 {
+if pos == 0 {
re.error("'*' illegal at start of expression")
}
--
2.48.1