diff options
author | Peter Saxton <peterhsaxton@gmail.com> | 2020-05-28 16:51:53 +0100 |
---|---|---|
committer | Louis Pilfold <louis@lpil.uk> | 2020-05-29 13:06:51 +0100 |
commit | 078b0b0483c90dd7c24df4650a2b5a8db61fc24a (patch) | |
tree | 4ae4354ccb0497e5434e1e35e2449effad6b580c | |
parent | fa20e017c8626de3a081f83de903b9cb1c2139ad (diff) | |
download | gleam_stdlib-078b0b0483c90dd7c24df4650a2b5a8db61fc24a.tar.gz gleam_stdlib-078b0b0483c90dd7c24df4650a2b5a8db61fc24a.zip |
spelling corrections
-rw-r--r-- | src/gleam/binary.gleam | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gleam/binary.gleam b/src/gleam/binary.gleam index 79158a4..7c7e308 100644 --- a/src/gleam/binary.gleam +++ b/src/gleam/binary.gleam @@ -11,7 +11,7 @@ pub external fn from_string(String) -> Binary = pub external fn byte_size(Binary) -> Int = "erlang" "byte_size" -/// Extracts the part of a binary. +/// Extracts part of a binary. /// /// Binary part will start at given position and continue up to specified length. /// A negative length can be used to extract bytes at the end of a binary: @@ -22,13 +22,13 @@ pub external fn part( ) -> Result(Binary, Nil) = "binary_native" "part" -/// Convert integer to unsigned 32 bits. +/// Convert an integer to unsigned 32 bits. /// /// Returns an error if integer is less than zero or equal to or larger than 2^32. pub external fn int_to_u32(Int) -> Result(Binary, Nil) = "binary_native" "int_to_u32" -/// Convert unsigned 32 bits to Integer +/// Convert unsigned 32 bits to an integer /// /// Returns an error if the binary is not 32 bits in length. pub external fn int_from_u32(Binary) -> Result(Int, Nil) = |