Commit fc9f65a6 authored by Rob Pike's avatar Rob Pike

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
parent f39ff80b
......@@ -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>
......
......@@ -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
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment