summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKurt <kurt.w.jung@gmail.com>2016-07-30 17:40:29 -0400
committerKurt <kurt.w.jung@gmail.com>2016-07-30 17:40:29 -0400
commitf4bda32520aac828bf0c3880a41a97d5db968a7c (patch)
tree333fd92931935fda56396f24dcf4f51adcfdf83b
parent80eb3e2a5ac1dddbbf7bd76e8065298f5257f122 (diff)
Correct example function name
-rw-r--r--fpdf_test.go2
-rw-r--r--internal/example/example_test.go4
2 files changed, 2 insertions, 4 deletions
diff --git a/fpdf_test.go b/fpdf_test.go
index 2b12bdd..9e27aa3 100644
--- a/fpdf_test.go
+++ b/fpdf_test.go
@@ -1753,7 +1753,7 @@ func ExampleFpdf_CreateTemplate() {
}
// This example demonstrate how to use embedded fonts from byte array
-func ExampleEmbeddedBytes() {
+func ExampleFpdf_AddFontFromBytes() {
pdf := gofpdf.New("P", "mm", "A4", "")
pdf.AddPage()
pdf.AddFontFromBytes("calligra", "", files.CalligraJson, files.CalligraZ)
diff --git a/internal/example/example_test.go b/internal/example/example_test.go
index 60ac1ac..8717d45 100644
--- a/internal/example/example_test.go
+++ b/internal/example/example_test.go
@@ -23,11 +23,9 @@ import (
)
// Test the Filename() and Summary() functions.
-func Example_Filename() {
+func Example_ExampleFilename() {
fileStr := example.Filename("example")
- example.Summary(nil, fileStr)
example.Summary(errors.New("printer on fire"), fileStr)
// Output:
- // Successfully generated ../../pdf/example.pdf
// printer on fire
}