diff options
author | James Hillyerd <james@hillyerd.com> | 2024-02-25 18:51:39 -0800 |
---|---|---|
committer | Louis Pilfold <louis@lpil.uk> | 2024-02-26 12:09:07 +0000 |
commit | dc1d1953828e5a6d134522f97268f88b07df31be (patch) | |
tree | f081370c75ad09e6fd049bc64a439b9c6bad98ea | |
parent | 6a701d1b1943891ee866e22c5d84800ade8c09f1 (diff) | |
download | gleam_stdlib-dc1d1953828e5a6d134522f97268f88b07df31be.tar.gz gleam_stdlib-dc1d1953828e5a6d134522f97268f88b07df31be.zip |
fix: use `dict` instead of `map` in dynamic->dict examples
-rw-r--r-- | src/gleam/dynamic.gleam | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gleam/dynamic.gleam b/src/gleam/dynamic.gleam index 1feadfb..b8217a9 100644 --- a/src/gleam/dynamic.gleam +++ b/src/gleam/dynamic.gleam @@ -971,17 +971,17 @@ pub fn tuple6( /// /// ```gleam /// import gleam/dict -/// dict.new() |> from |> map(string, int) +/// dict.new() |> from |> dict(string, int) /// // -> Ok(dict.new()) /// ``` /// /// ```gleam -/// from(1) |> map(string, int) +/// from(1) |> dict(string, int) /// // -> Error(DecodeError(expected: "Map", found: "Int", path: [])) /// ``` /// /// ```gleam -/// from("") |> map(string, int) +/// from("") |> dict(string, int) /// // -> Error(DecodeError(expected: "Map", found: "String", path: [])) /// ``` /// |