aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGiacomo Cavalieri <giacomo.cavalieri@icloud.com>2023-12-31 20:53:41 +0100
committerLouis Pilfold <louis@lpil.uk>2024-01-02 17:08:28 +0000
commit0bb78f81c9077afcc67df5fa11e5bcb3cfa33e6a (patch)
treebed95b3311eb7cde4167c32560303e25fc05b05d /src
parent819917a064408f4897b587967b472fcd79110148 (diff)
downloadgleam_stdlib-0bb78f81c9077afcc67df5fa11e5bcb3cfa33e6a.tar.gz
gleam_stdlib-0bb78f81c9077afcc67df5fa11e5bcb3cfa33e6a.zip
bit_array doc examples
Diffstat (limited to 'src')
-rw-r--r--src/gleam/bit_array.gleam8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/gleam/bit_array.gleam b/src/gleam/bit_array.gleam
index 79860e9..1a94679 100644
--- a/src/gleam/bit_array.gleam
+++ b/src/gleam/bit_array.gleam
@@ -19,8 +19,8 @@ pub fn byte_size(x: BitArray) -> Int
/// ## Examples
///
/// ```gleam
-/// > append(to: from_string("butter"), suffix: from_string("fly"))
-/// from_string("butterfly")
+/// append(to: from_string("butter"), suffix: from_string("fly"))
+/// // -> from_string("butterfly")
/// ```
///
pub fn append(to first: BitArray, suffix second: BitArray) -> BitArray {
@@ -95,8 +95,8 @@ fn do_to_string(a: BitArray) -> Result(String, Nil)
/// ## Examples
///
/// ```gleam
-/// > concat([from_string("butter"), from_string("fly")])
-/// from_string("butterfly")
+/// concat([from_string("butter"), from_string("fly")])
+/// // -> from_string("butterfly")
/// ```
///
@external(erlang, "gleam_stdlib", "bit_array_concat")