summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKurt <kurt.w.jung@gmail.com>2018-06-16 06:13:17 -0400
committerKurt <kurt.w.jung@gmail.com>2018-06-16 06:13:17 -0400
commit25acc1ecb6d9bc748508693b932659a7dd10b776 (patch)
treebbb6e2cdcb0b852caebaa4438dbec114a8cc695c
parent67f76e6ca7356106506c5f2b3d72524a5ef8e5f1 (diff)
Change example name to match method
-rw-r--r--fpdf_test.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/fpdf_test.go b/fpdf_test.go
index d9fa429..e82217a 100644
--- a/fpdf_test.go
+++ b/fpdf_test.go
@@ -716,7 +716,7 @@ func ExampleFpdf_Image() {
// This example demonstrates how the AllowNegativePosition field of the
// ImageOption struct can be used to affect horizontal image placement.
-func ExampleFpdf_ImageOption() {
+func ExampleFpdf_ImageOptions() {
var opt gofpdf.ImageOptions
pdf := gofpdf.New("P", "mm", "A4", "")
@@ -727,11 +727,11 @@ func ExampleFpdf_ImageOption() {
pdf.ImageOptions(example.ImageFile("logo.png"), -10, 10, 30, 0, false, opt, 0, "")
opt.AllowNegativePosition = true
pdf.ImageOptions(example.ImageFile("logo.png"), -10, 50, 30, 0, false, opt, 0, "")
- fileStr := example.Filename("Fpdf_ImageOption")
+ fileStr := example.Filename("Fpdf_ImageOptions")
err := pdf.OutputFileAndClose(fileStr)
example.Summary(err, fileStr)
// Output:
- // Successfully generated pdf/Fpdf_ImageOption.pdf
+ // Successfully generated pdf/Fpdf_ImageOptions.pdf
}
// This examples demonstrates Landscape mode with images.