From 25acc1ecb6d9bc748508693b932659a7dd10b776 Mon Sep 17 00:00:00 2001 From: Kurt Date: Sat, 16 Jun 2018 06:13:17 -0400 Subject: Change example name to match method --- fpdf_test.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'fpdf_test.go') 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. -- cgit v1.2.1-24-ge1ad