summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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
}