From 95702eead4d148c6111f5a3ef7ef7cbc0c906b49 Mon Sep 17 00:00:00 2001 From: CodeLingo Bot Date: Wed, 12 Dec 2018 02:30:35 +1300 Subject: 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 --- internal/example/example.go | 2 +- internal/example/example_test.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'internal') 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) -- cgit v1.2.1-24-ge1ad