]> Cypherpunks repositories - gostls13.git/commitdiff
doc/articles/image_draw.html: fix circle example
authorRob Pike <r@golang.org>
Fri, 23 Mar 2012 06:02:21 +0000 (17:02 +1100)
committerRob Pike <r@golang.org>
Fri, 23 Mar 2012 06:02:21 +0000 (17:02 +1100)
It was showing the same snippet twice instead of the type definition and snippet.

R=golang-dev, iant
CC=golang-dev
https://golang.org/cl/5875045

doc/articles/image_draw.html
doc/progs/image_draw.go

index 848b659822a3e825ccaeb7f16dfe935e22bb6412..b1adbc53abfcc9c80e56c2e46f07f9fc29b83373 100644 (file)
@@ -178,7 +178,7 @@ To draw an image through a circular mask with center <code>p</code> and radius
 <code>r</code>:
 </p>
 
-{{code "/doc/progs/image_draw.go" `/CIRCLE/` `/STOP/`}}
+{{code "/doc/progs/image_draw.go" `/CIRCLESTRUCT/` `/STOP/`}}
 {{code "/doc/progs/image_draw.go" `/CIRCLE2/` `/STOP/`}}
   
 <p>
index f3400b601be392b0e7d1c844307b9725f5704188..2cc5c632f325a4c160d17e58482b7b6af8f7580c 100644 (file)
@@ -117,7 +117,7 @@ func Glyph() {
        // STOP OMIT
 }
 
-//CIRCLE OMIT
+//CIRCLESTRUCT OMIT
 type circle struct {
        p image.Point
        r int
@@ -139,4 +139,4 @@ func (c *circle) At(x, y int) color.Color {
        return color.Alpha{0}
 }
 
-//STOP
+//STOP OMIT