summaryrefslogtreecommitdiff
path: root/compare.go
diff options
context:
space:
mode:
authorKurt <kurt.w.jung@gmail.com>2016-11-12 07:14:22 -0500
committerKurt <kurt.w.jung@gmail.com>2016-11-12 07:14:22 -0500
commit8905a622336664d66de462bbbaffea5acc26026f (patch)
treeff0bc5681c1290f594445a06deb92b1d5d6810d5 /compare.go
parent83f63e773b4dd5516af63ba8d7278e21f96f2062 (diff)
Document the TIFF image functions. Correct related documentation.
Diffstat (limited to 'compare.go')
-rw-r--r--compare.go11
1 files changed, 4 insertions, 7 deletions
diff --git a/compare.go b/compare.go
index edc1ae4..416e545 100644
--- a/compare.go
+++ b/compare.go
@@ -113,9 +113,8 @@ func CompareBytes(sl1, sl2 []byte) (err error) {
}
// ComparePDFs reads and compares the full contents of the two specified
-// readers. The comparison is done byte-for-byte with the exception of the
-// CreationDate fields which are effectively ignored. Nil is returned if the
-// buffers are equal, otherwise an error.
+// readers byte-for-byte. Nil is returned if the buffers are equal, otherwise
+// an error.
func ComparePDFs(rdr1, rdr2 io.Reader) (err error) {
var b1, b2 *bytes.Buffer
_, err = b1.ReadFrom(rdr1)
@@ -129,10 +128,8 @@ func ComparePDFs(rdr1, rdr2 io.Reader) (err error) {
}
// ComparePDFFiles reads and compares the full contents of the two specified
-// files. The comparison is done byte-for-byte with the exception of the
-// CreationDate fields which are effectively ignored. Nil is returned if the
-// file contents are equal, or if the second file is missing, otherwise an
-// error.
+// files byte-for-byte. Nil is returned if the file contents are equal, or if
+// the second file is missing, otherwise an error.
func ComparePDFFiles(file1Str, file2Str string) (err error) {
var sl1, sl2 []byte
sl1, err = ioutil.ReadFile(file1Str)