Skip to content

Commit

Permalink
font/sfnt: rename ExampleRasterizeGlyph to Example_rasterizeGlyph
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
egorovcharenko9 committed Jan 3, 2024
1 parent 653caf4 commit ccad75c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion font/sfnt/example_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import (
"golang.org/x/image/vector"
)

func ExampleRasterizeGlyph() {
func Example_rasterizeGlyph() {
const (
ppem = 32
width = 24
Expand Down

0 comments on commit ccad75c

Please sign in to comment.