diff --git a/README.md b/README.md index b8df7b1..db597a6 100644 --- a/README.md +++ b/README.md @@ -130,7 +130,7 @@ func compress(src: openArray[uint8]; dst: var seq[uint8]) {.raises: [SnappyError ## **func** compress -Compresses src and returns the compressed data seq. +Compresses src and returns the compressed data. ```nim func compress(src: openArray[uint8]): seq[uint8] {.inline, raises: [SnappyError].} diff --git a/supersnappy.nim b/supersnappy.nim index eeecf60..809fd90 100644 --- a/supersnappy.nim +++ b/supersnappy.nim @@ -396,7 +396,7 @@ func compress*(src: openArray[uint8], dst: var seq[uint8]) = ## Compresses src into dst. This resizes dst as needed and starts writing ## at dst index 0. - when int.sizeof>4: + when sizeof(int) > 4: if src.len > high(uint32).int: failCompress() @@ -422,7 +422,7 @@ func compress*(src: openArray[uint8], dst: var seq[uint8]) = dst.setLen(op) func compress*(src: openArray[uint8]): seq[uint8] {.inline.} = - ## Compresses src and returns the compressed data seq. + ## Compresses src and returns the compressed data. compress(src, result) template uncompress*(src: string): string = diff --git a/supersnappy.nimble b/supersnappy.nimble index 80fcbc0..c5ab91d 100644 --- a/supersnappy.nimble +++ b/supersnappy.nimble @@ -1,5 +1,5 @@ packageName = "supersnappy" -version = "1.1.1" +version = "1.1.2" author = "Ryan Oldenburg" description = "Nim implementation of Google's Snappy compression." license = "MIT"