From d65c2335e8ec3db6c87c9e23aa2ff329da57e182 Mon Sep 17 00:00:00 2001 From: Kurt Date: Mon, 8 Jan 2018 15:32:13 -0500 Subject: Acknowledge David Fish's generic alias replacement contribution; change test name so that example hang's off of RegisterAlias method in documentation --- 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 c7d843a..c7cd582 100644 --- a/fpdf_test.go +++ b/fpdf_test.go @@ -2063,7 +2063,7 @@ func ExampleFpdf_AddSpotColor() { // This example demonstrates how to use `RegisterAlias` to create a table of // contents. -func ExampleFpdf_TableOfContents() { +func ExampleFpdf_RegisterAlias() { pdf := gofpdf.New("P", "mm", "A4", "") pdf.SetFont("Arial", "", 12) pdf.AddPage() @@ -2085,9 +2085,9 @@ func ExampleFpdf_TableOfContents() { pdf.Write(10, fmt.Sprintf("Section %d", i)) } - fileStr := example.Filename("Fpdf_TableOfContents") + fileStr := example.Filename("Fpdf_RegisterAlias") err := pdf.OutputFileAndClose(fileStr) example.Summary(err, fileStr) // Output: - // Successfully generated pdf/Fpdf_TableOfContents.pdf + // Successfully generated pdf/Fpdf_RegisterAlias.pdf } -- cgit v1.2.1-24-ge1ad