aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPeter Saxton <peterhsaxton@gmail.com>2020-05-28 16:45:41 +0100
committerLouis Pilfold <louis@lpil.uk>2020-05-29 13:06:51 +0100
commitdc338c23b29cd957d5517befda3e97286ca8dd52 (patch)
tree36440daa0a8fc529226ee10e5e799961abc2ae62 /src
parentb69639b12d9ebd96d430cfcdebd69417713ac9ed (diff)
downloadgleam_stdlib-dc338c23b29cd957d5517befda3e97286ca8dd52.tar.gz
gleam_stdlib-dc338c23b29cd957d5517befda3e97286ca8dd52.zip
format again
Diffstat (limited to 'src')
-rw-r--r--src/gleam/binary.gleam10
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.
///