font/sfnt: rename ExampleRasterizeGlyph to Example_rasterizeGlyph

This change renames the example to follow correct naming convention,
as documented at https://godoc.org/testing#hdr-Examples. As a result,
it shows up in godoc.

This issue was caught and reported by vet:

	$ go vet golang.org/x/image/font/sfnt
	# golang.org/x/image/font/sfnt_test
	font/sfnt/example_test.go:19: ExampleRasterizeGlyph refers to unknown identifier: RasterizeGlyph

Fixes golang/go#28684

Change-Id: I2749c638c5f3ed15e4db0448bc7a5e2c12c056e5
Reviewed-on: https://go-review.googlesource.com/c/148576
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
This commit is contained in:
Dmitri Shuralyov 2018-11-08 18:43:13 -05:00
parent 22fd5b5408
commit aa35264064

View File

@ -16,7 +16,7 @@ import (
"golang.org/x/image/vector"
)
func ExampleRasterizeGlyph() {
func Example_rasterizeGlyph() {
const (
ppem = 32
width = 24