summaryrefslogtreecommitdiff
path: root/internal
diff options
context:
space:
mode:
authorCodeLingo Bot <hello@codelingo.io>2018-12-12 02:30:35 +1300
committerKurt Jung <kurt.w.jung@gmail.com>2018-12-11 08:30:35 -0500
commit95702eead4d148c6111f5a3ef7ef7cbc0c906b49 (patch)
treee5e45521c4ee68d36cbad02aaa69153660fd8797 /internal
parentfe48001d4389ad79f7402b3c654c03409babac29 (diff)
Fix comments according to best practices by effective go (#217)
* Fix comments according to best practices by effective go * Update font.go * Update fpdf_test.go * Update fpdf.go * Update example.go * Update util.go
Diffstat (limited to 'internal')
-rw-r--r--internal/example/example.go2
-rw-r--r--internal/example/example_test.go2
2 files changed, 2 insertions, 2 deletions
diff --git a/internal/example/example.go b/internal/example/example.go
index 90f861a..05e4827 100644
--- a/internal/example/example.go
+++ b/internal/example/example.go
@@ -36,7 +36,7 @@ func init() {
gofpdf.SetDefaultCreationDate(time.Date(2000, 1, 1, 0, 0, 0, 0, time.UTC))
}
-// Assign the relative path to the gofpdfDir directory based on current working
+// setRoot assigns the relative path to the gofpdfDir directory based on current working
// directory
func setRoot() {
wdStr, err := os.Getwd()
diff --git a/internal/example/example_test.go b/internal/example/example_test.go
index a779650..b985778 100644
--- a/internal/example/example_test.go
+++ b/internal/example/example_test.go
@@ -22,7 +22,7 @@ import (
"github.com/jung-kurt/gofpdf/internal/example"
)
-// Test the Filename() and Summary() functions.
+// ExampleFilename tests the Filename() and Summary() functions.
func ExampleFilename() {
fileStr := example.Filename("example")
example.Summary(errors.New("printer on fire"), fileStr)