summaryrefslogtreecommitdiff
path: root/fpdf_test.go
diff options
context:
space:
mode:
authorKurt Jung <kurt.w.jung@code.google.com>2014-04-12 20:45:03 -0400
committerKurt Jung <kurt.w.jung@code.google.com>2014-04-12 20:45:03 -0400
commitc40e4d1c694c516018f83d5a402ecbd42287bfd3 (patch)
treeed83008a02b316c80f4721d4903c3d09d0f47b23 /fpdf_test.go
parent6784a99d927fbdfa045afceb976e1165ba7a85da (diff)
Clarified comment
Diffstat (limited to 'fpdf_test.go')
-rw-r--r--fpdf_test.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/fpdf_test.go b/fpdf_test.go
index 7c96411..90071af 100644
--- a/fpdf_test.go
+++ b/fpdf_test.go
@@ -1166,9 +1166,8 @@ func ExampleFpdf_tutorial23() {
fontSize := 16.0
pdf.SetFont("Helvetica", "", fontSize)
ht := pdf.PointConvert(fontSize)
- tr := pdf.UnicodeTranslatorFromDescriptor("") // Default: "cp1252"
+ tr := pdf.UnicodeTranslatorFromDescriptor("") // "" defaults to "cp1252"
write := func(str string) {
- // fmt.Println(str, tr(str))
pdf.CellFormat(190, ht, tr(str), "", 1, "C", false, 0, "")
pdf.Ln(ht)
}