aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAntoine Wendlinger <account@awendlinger.fr>2022-06-21 23:20:07 +0200
committerLouis Pilfold <louis@lpil.uk>2022-07-01 20:57:10 +0100
commitbde95f08122dda73867c745fd866f4c74b9e105d (patch)
tree065ecf7b8f99b1f98a7682302bffd33348602010 /src
parent0f42c3c8ec5fafad0c396e6e61510ad4d8aa5d7e (diff)
downloadgleam_stdlib-bde95f08122dda73867c745fd866f4c74b9e105d.tar.gz
gleam_stdlib-bde95f08122dda73867c745fd866f4c74b9e105d.zip
fix: bit_builder.from_string_builder should wrap input
Fixes #313.
Diffstat (limited to 'src')
-rw-r--r--src/gleam/bit_builder.gleam2
-rw-r--r--src/gleam/string_builder.gleam2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/gleam/bit_builder.gleam b/src/gleam/bit_builder.gleam
index 2a7d435..960d665 100644
--- a/src/gleam/bit_builder.gleam
+++ b/src/gleam/bit_builder.gleam
@@ -179,7 +179,7 @@ pub fn from_string_builder(builder: StringBuilder) -> BitBuilder {
if erlang {
external fn do_from_string_builder(StringBuilder) -> BitBuilder =
- "gleam_stdlib" "identity"
+ "gleam_stdlib" "wrap_list"
}
if javascript {
diff --git a/src/gleam/string_builder.gleam b/src/gleam/string_builder.gleam
index f1dfb30..616da74 100644
--- a/src/gleam/string_builder.gleam
+++ b/src/gleam/string_builder.gleam
@@ -9,7 +9,7 @@
/// using minimal memory, and then can be efficiently converted to a string
/// using the `to_string` function.
///
-/// On Erlang this type is compatible with Erlang's iolists. On JavaScript this
+/// On Erlang this type is compatible with Erlang's iodata. On JavaScript this
/// type is compatible with normal strings.
///
pub external type StringBuilder