summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--fpdf.go2
-rw-r--r--fpdf_test.go2
-rw-r--r--template_impl.go2
-rw-r--r--util.go2
4 files changed, 4 insertions, 4 deletions
diff --git a/fpdf.go b/fpdf.go
index b6508f5..35f6878 100644
--- a/fpdf.go
+++ b/fpdf.go
@@ -2679,7 +2679,7 @@ func (f *Fpdf) OutputFileAndClose(fileStr string) error {
}
// Output sends the PDF document to the writer specified by w. No output will
-// take place if an error has occured in the document generation process. w
+// take place if an error has occurred in the document generation process. w
// remains open after this function returns. After returning, f is in a closed
// state and its methods should not be called.
func (f *Fpdf) Output(w io.Writer) error {
diff --git a/fpdf_test.go b/fpdf_test.go
index d73818e..bda0936 100644
--- a/fpdf_test.go
+++ b/fpdf_test.go
@@ -93,7 +93,7 @@ func lorem() string {
// functions belong to a separate, internal package and are not part of the
// gofpdf library. If an error occurs at some point during the construction of
// the document, subsequent method calls exit immediately and the error is
-// finally retreived with the output call where it can be handled by the
+// finally retrieved with the output call where it can be handled by the
// application.
func Example() {
pdf := gofpdf.New("P", "mm", "A4", "")
diff --git a/template_impl.go b/template_impl.go
index 3a23921..01bb040 100644
--- a/template_impl.go
+++ b/template_impl.go
@@ -114,7 +114,7 @@ func (t *Tpl) loadParamsFromFpdf(f *Fpdf) {
func (t *Tpl) AddPage() {
}
-// AddPageFormat does nothign becasue you cannot add pages to a template
+// AddPageFormat does nothign because you cannot add pages to a template
func (t *Tpl) AddPageFormat(orientationStr string, size SizeType) {
}
diff --git a/util.go b/util.go
index 11cb016..149271c 100644
--- a/util.go
+++ b/util.go
@@ -307,7 +307,7 @@ func (s *SizeType) ScaleToWidth(width float64) SizeType {
return SizeType{width, height}
}
-// ScaleToHeight adjsuts the width of a size to match the given height
+// ScaleToHeight adjusts the width of a size to match the given height
func (s *SizeType) ScaleToHeight(height float64) SizeType {
width := s.Wd * height / s.Ht
return SizeType{width, height}