summaryrefslogtreecommitdiff
path: root/fpdf_test.go
diff options
context:
space:
mode:
authorWilk <flibustenet@users.noreply.github.com>2016-11-07 12:04:39 +0100
committerKurt Jung <kurt.w.jung@gmail.com>2016-11-07 06:04:39 -0500
commit0002baf4ceec3fa0a7c935e7205d5364c0adbaa5 (patch)
treea5b6d8334806ef4e0a40ad41b6a5f324c064f002 /fpdf_test.go
parentca6981389768868f419c9fb99e6cac2560836be5 (diff)
Use struct keywords in examples of fpdf_test to comply with go vet (#90)
Good catch, @flibustenet -- thanks!
Diffstat (limited to 'fpdf_test.go')
-rw-r--r--fpdf_test.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/fpdf_test.go b/fpdf_test.go
index 7febb30..9f99568 100644
--- a/fpdf_test.go
+++ b/fpdf_test.go
@@ -825,8 +825,8 @@ func ExampleFpdf_ClipText() {
0.7, 0.3, 0.7, 0.5)
pdf.ClipEnd()
- pdf.ClipPolygon([]gofpdf.PointType{{80, y + 20}, {90, y},
- {100, y + 20}}, true)
+ pdf.ClipPolygon([]gofpdf.PointType{{X: 80, Y: y + 20}, {X: 90, Y: y},
+ {X: 100, Y: y + 20}}, true)
pdf.LinearGradient(80, y, 20, 20, 250, 220, 250, 60, 40, 60, 0.5,
1, 0.5, 0.5)
pdf.ClipEnd()