aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Łępicki <michallepicki@users.noreply.github.com>2022-02-16 21:39:37 +0100
committerLouis Pilfold <louis@lpil.uk>2022-02-17 23:12:57 +0000
commitf9cf638c341e8b9779f8ce09566b22feecee71a6 (patch)
tree666f2916a9d1c67fc37136e9de4abbb359bc8f25
parent6aee94163a3167d5541f70b172fd00fe587344fa (diff)
downloadgleam_stdlib-f9cf638c341e8b9779f8ce09566b22feecee71a6.tar.gz
gleam_stdlib-f9cf638c341e8b9779f8ce09566b22feecee71a6.zip
Fix copypasta mistake in decode.list documentation
and in decode.shallow_list documentation say decode.list is a function
-rw-r--r--src/gleam/dynamic.gleam4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gleam/dynamic.gleam b/src/gleam/dynamic.gleam
index 938d4c4..320605c 100644
--- a/src/gleam/dynamic.gleam
+++ b/src/gleam/dynamic.gleam
@@ -246,7 +246,7 @@ if javascript {
/// Checks to see whether a `Dynamic` value is a list, and returns that list if it
/// is. The types of the elements are not checked.
///
-/// If you wish to decode all the elements in the list use the `list`
+/// If you wish to decode all the elements in the list use the `list` function
/// instead.
///
/// ## Examples
@@ -336,7 +336,7 @@ pub fn result(
/// the list. The list is only decoded if all elements in the list can be
/// successfully decoded using this function.
///
-/// If you do not wish to decode all the elements in the list use the `list`
+/// If you do not wish to decode all the elements in the list use the `shallow_list`
/// function instead.
///
/// ## Examples