diff options
author | Peter Saxton <peterhsaxton@gmail.com> | 2020-05-28 16:45:41 +0100 |
---|---|---|
committer | Louis Pilfold <louis@lpil.uk> | 2020-05-29 13:06:51 +0100 |
commit | dc338c23b29cd957d5517befda3e97286ca8dd52 (patch) | |
tree | 36440daa0a8fc529226ee10e5e799961abc2ae62 | |
parent | b69639b12d9ebd96d430cfcdebd69417713ac9ed (diff) | |
download | gleam_stdlib-dc338c23b29cd957d5517befda3e97286ca8dd52.tar.gz gleam_stdlib-dc338c23b29cd957d5517befda3e97286ca8dd52.zip |
format again
-rw-r--r-- | src/gleam/binary.gleam | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/gleam/binary.gleam b/src/gleam/binary.gleam index c36b941..79158a4 100644 --- a/src/gleam/binary.gleam +++ b/src/gleam/binary.gleam @@ -9,14 +9,18 @@ pub external fn from_string(String) -> Binary = /// Returns an integer which is the number of bytes in the binary. pub external fn byte_size(Binary) -> Int = -"erlang" "byte_size" + "erlang" "byte_size" /// Extracts the 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: -pub external fn part(string: Binary, position: Int, length: Int) -> Result(Binary, Nil) = -"binary_native" "part" +pub external fn part( + string: Binary, + position: Int, + length: Int, +) -> Result(Binary, Nil) = + "binary_native" "part" /// Convert integer to unsigned 32 bits. /// |