aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/gleam/dynamic.gleam7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/gleam/dynamic.gleam b/src/gleam/dynamic.gleam
index 320605c..b2a4981 100644
--- a/src/gleam/dynamic.gleam
+++ b/src/gleam/dynamic.gleam
@@ -832,13 +832,14 @@ pub fn tuple6(
///
/// ```gleam
/// > import gleam/map
-/// > map(from(map.new()))
+///
+/// > map.new() |> from |> map(string, int)
/// Ok(map.new())
///
-/// > map(from(1))
+/// > from(1) |> map(string, int)
/// Error(DecodeError(expected: "Map", found: "Int", path: []))
///
-/// > map(from(""))
+/// > from("") |> map(string, int)
/// Error(DecodeError(expected: "Map", found: "String", path: []))
/// ```
///