1
0
mirror of https://github.com/golang/go synced 2024-11-21 21:14:47 -07:00

doc/articles/image_draw.html: fix circle example

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
This commit is contained in:
Rob Pike 2012-03-23 17:02:21 +11:00
parent f39ff80bea
commit fc9f65a6a0
2 changed files with 3 additions and 3 deletions

View 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>

View 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