From 078b0b0483c90dd7c24df4650a2b5a8db61fc24a Mon Sep 17 00:00:00 2001 From: Peter Saxton Date: Thu, 28 May 2020 16:51:53 +0100 Subject: spelling corrections --- src/gleam/binary.gleam | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src') 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) = -- cgit v1.2.3