From fc9f65a6a09377b49e7b21bb8dcad3a2260edfb8 Mon Sep 17 00:00:00 2001
From: Rob Pike
Date: Fri, 23 Mar 2012 17:02:21 +1100
Subject: [PATCH] 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
---
doc/articles/image_draw.html | 2 +-
doc/progs/image_draw.go | 4 ++--
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/doc/articles/image_draw.html b/doc/articles/image_draw.html
index 848b659822..b1adbc53ab 100644
--- a/doc/articles/image_draw.html
+++ b/doc/articles/image_draw.html
@@ -178,7 +178,7 @@ To draw an image through a circular mask with center p
and radius
r
:
-{{code "/doc/progs/image_draw.go" `/CIRCLE/` `/STOP/`}}
+{{code "/doc/progs/image_draw.go" `/CIRCLESTRUCT/` `/STOP/`}}
{{code "/doc/progs/image_draw.go" `/CIRCLE2/` `/STOP/`}}
diff --git a/doc/progs/image_draw.go b/doc/progs/image_draw.go
index f3400b601b..2cc5c632f3 100644
--- a/doc/progs/image_draw.go
+++ b/doc/progs/image_draw.go
@@ -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