Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(814)

Unified Diff: doc/effective_go.html

Issue 11991043: code review 11991043: effective_go.html: make snippets look formatted. (Closed)
Patch Set: diff -r 2fe813f4f3c2 https://go.googlecode.com/hg/ Created 11 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: doc/effective_go.html
===================================================================
--- a/doc/effective_go.html
+++ b/doc/effective_go.html
@@ -882,7 +882,7 @@
}
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 @@
so it's easy to build them during initialization.
</p>
<pre>
-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 @@
test it by simple indexing.
</p>
<pre>
-attended := map[string] bool {
+attended := map[string]bool{
"Ann": true,
"Joe": true,
...
@@ -3437,7 +3437,7 @@
</p>
<pre>
-if pos==0 {
+if pos == 0 {
re.error("'*' illegal at start of expression")
}
</pre>
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b