aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Hencke <robert.hencke@gmail.com>2012-01-25 21:09:46 -0800
committerRob Pike <r@golang.org>2012-01-25 21:09:46 -0800
commit7c9ee5f3696290804a2d192121f1da1fae1b3b8f (patch)
tree56b9e53b82c7c4479ff35d3aea35e5ee6fef17a3
parentf8a28ecc9f9ab0ca6a65ca4af4f5a7f3256f6a96 (diff)
downloadgo-7c9ee5f3696290804a2d192121f1da1fae1b3b8f.tar.gz
go-7c9ee5f3696290804a2d192121f1da1fae1b3b8f.zip
doc/go1: minor html fixes
R=golang-dev, r CC=golang-dev https://golang.org/cl/5572064
-rw-r--r--doc/go1.html8
-rw-r--r--doc/go1.tmpl8
2 files changed, 8 insertions, 8 deletions
diff --git a/doc/go1.html b/doc/go1.html
index 412f3a555b..23ed3709fb 100644
--- a/doc/go1.html
+++ b/doc/go1.html
@@ -74,8 +74,8 @@ to call <code>close</code> on a receive-only channel:
<pre>
var c chan int
- var csend chan<- int = c
- var crecv <-chan int = c
+ var csend chan&lt;- int = c
+ var crecv &lt;-chan int = c
close(c) // legal
close(csend) // legal
close(crecv) // illegal
@@ -328,8 +328,8 @@ This function implicitly returns a shadowed return value and will be rejected by
<pre>
func Bug() (i, j, k int) {
- for i = 0; i < 5; i++ {
- for j := 0; j < 5; j++ { // Redeclares j.
+ for i = 0; i &lt; 5; i++ {
+ for j := 0; j &lt; 5; j++ { // Redeclares j.
k += i*j
if k > 100 {
return // Rejected: j is shadowed here.
diff --git a/doc/go1.tmpl b/doc/go1.tmpl
index 5fc67724a3..fd005b102d 100644
--- a/doc/go1.tmpl
+++ b/doc/go1.tmpl
@@ -67,8 +67,8 @@ to call <code>close</code> on a receive-only channel:
<pre>
var c chan int
- var csend chan<- int = c
- var crecv <-chan int = c
+ var csend chan&lt;- int = c
+ var crecv &lt;-chan int = c
close(c) // legal
close(csend) // legal
close(crecv) // illegal
@@ -263,8 +263,8 @@ This function implicitly returns a shadowed return value and will be rejected by
<pre>
func Bug() (i, j, k int) {
- for i = 0; i < 5; i++ {
- for j := 0; j < 5; j++ { // Redeclares j.
+ for i = 0; i &lt; 5; i++ {
+ for j := 0; j &lt; 5; j++ { // Redeclares j.
k += i*j
if k > 100 {
return // Rejected: j is shadowed here.