Skip to content

Commit dc1d195

Browse files
jhillyerdlpil
authored andcommitted
fix: use dict instead of map in dynamic->dict examples
1 parent 6a701d1 commit dc1d195

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/gleam/dynamic.gleam

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -971,17 +971,17 @@ pub fn tuple6(
971971
///
972972
/// ```gleam
973973
/// import gleam/dict
974-
/// dict.new() |> from |> map(string, int)
974+
/// dict.new() |> from |> dict(string, int)
975975
/// // -> Ok(dict.new())
976976
/// ```
977977
///
978978
/// ```gleam
979-
/// from(1) |> map(string, int)
979+
/// from(1) |> dict(string, int)
980980
/// // -> Error(DecodeError(expected: "Map", found: "Int", path: []))
981981
/// ```
982982
///
983983
/// ```gleam
984-
/// from("") |> map(string, int)
984+
/// from("") |> dict(string, int)
985985
/// // -> Error(DecodeError(expected: "Map", found: "String", path: []))
986986
/// ```
987987
///

0 commit comments

Comments
 (0)