Skip to content

Commit aaade1d

Browse files
Octets are modulo 256, not 255
Fixes #15.
1 parent 7df41b4 commit aaade1d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Node/Buffer.purs

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ import Data.Maybe (Maybe(..))
2828
import Node.Encoding (Encoding, encodingToNode)
2929

3030
-- | Type synonym indicating the value should be an octet (0-255). If the value
31-
-- | provided is outside this range it will be used as modulo 255.
31+
-- | provided is outside this range it will be used as modulo 256.
3232
type Octet = Int
3333

3434
-- | Type synonym indicating the value refers to an offset in a buffer.

0 commit comments

Comments
 (0)