We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
dict
map
1 parent 6a701d1 commit dc1d195Copy full SHA for dc1d195
src/gleam/dynamic.gleam
@@ -971,17 +971,17 @@ pub fn tuple6(
971
///
972
/// ```gleam
973
/// import gleam/dict
974
-/// dict.new() |> from |> map(string, int)
+/// dict.new() |> from |> dict(string, int)
975
/// // -> Ok(dict.new())
976
/// ```
977
978
979
-/// from(1) |> map(string, int)
+/// from(1) |> dict(string, int)
980
/// // -> Error(DecodeError(expected: "Map", found: "Int", path: []))
981
982
983
984
-/// from("") |> map(string, int)
+/// from("") |> dict(string, int)
985
/// // -> Error(DecodeError(expected: "Map", found: "String", path: []))
986
987
0 commit comments