From 0189a71fb7cdf3bc5957be19f02bfa6636479c23 Mon Sep 17 00:00:00 2001 From: Adam Davies <41101+adz@users.noreply.github.com> Date: Wed, 20 Jul 2022 01:02:43 +0930 Subject: Correct dynamic 'optional' docstring --- src/gleam/dynamic.gleam | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src') diff --git a/src/gleam/dynamic.gleam b/src/gleam/dynamic.gleam index cd70f93..f29621d 100644 --- a/src/gleam/dynamic.gleam +++ b/src/gleam/dynamic.gleam @@ -375,27 +375,27 @@ pub fn list( /// /// ```gleam /// > from("Hello") -/// > |> option(string) +/// > |> optional(string) /// Ok(Some("Hello")) /// /// > from("Hello") -/// > |> option(string) +/// > |> optional(string) /// Ok(Some("Hello")) /// /// > from(atom.from_string("null")) -/// > |> option(string) +/// > |> optional(string) /// Ok(None) /// /// > from(atom.from_string("nil")) -/// > |> option(string) +/// > |> optional(string) /// Ok(None) /// /// > from(atom.from_string("undefined")) -/// > |> option(string) +/// > |> optional(string) /// Ok(None) /// /// > from(123) -/// > |> option(string) +/// > |> optional(string) /// Error([DecodeError(expected: "BitString", found: "Int", path: [])]) /// ``` /// -- cgit v1.2.3