From 7af97fba6aa4130dd36c2694d6c51f5fe2b89a16 Mon Sep 17 00:00:00 2001 From: Peter Williams Date: Wed, 27 Jun 2018 12:54:47 +1000 Subject: [PATCH] Fixed some comments --- pdf/core/utils.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pdf/core/utils.go b/pdf/core/utils.go index 08cf82f0..b810da34 100644 --- a/pdf/core/utils.go +++ b/pdf/core/utils.go @@ -192,7 +192,7 @@ func GetString(obj PdfObject) (string, error) { return "", err } -// GetString returns the bytes represented by `obj` if `obj` is a PdfObjectString or an error if it isn't. +// GetStringBytes returns the bytes represented by `obj` if `obj` is a PdfObjectString or an error if it isn't. func GetStringBytes(obj PdfObject) ([]byte, error) { if s, ok := obj.(*PdfObjectString); ok { return []byte(*s), nil @@ -201,7 +201,7 @@ func GetStringBytes(obj PdfObject) ([]byte, error) { return []byte{}, err } -// GetString returns the string represented by `obj` if `obj` is a PdfObjectName or an error if it isn't. +// GetName returns the string represented by `obj` if `obj` is a PdfObjectName or an error if it isn't. func GetName(obj PdfObject) (string, error) { if s, ok := obj.(*PdfObjectName); ok { return string(*s), nil