From dc1d1953828e5a6d134522f97268f88b07df31be Mon Sep 17 00:00:00 2001 From: James Hillyerd Date: Sun, 25 Feb 2024 18:51:39 -0800 Subject: fix: use `dict` instead of `map` in dynamic->dict examples --- src/gleam/dynamic.gleam | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src') 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: [])) /// ``` /// -- cgit v1.2.3