From 6aee94163a3167d5541f70b172fd00fe587344fa Mon Sep 17 00:00:00 2001 From: Filip Figiel Date: Tue, 8 Feb 2022 00:02:25 +0100 Subject: docs: improve string.to_option example the `to_option("")` example was repeated twice, I figured it was a mistake. Other examples use the word hats so I added it here too. --- src/gleam/string.gleam | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/gleam/string.gleam b/src/gleam/string.gleam index c624a30..889d2fc 100644 --- a/src/gleam/string.gleam +++ b/src/gleam/string.gleam @@ -675,8 +675,8 @@ pub fn utf_codepoint(value: Int) -> Result(UtfCodepoint, Nil) { /// ``` /// /// ```gleam -/// > to_option("") -/// None +/// > to_option("hats") +/// Some("hats") /// ``` /// pub fn to_option(s: String) -> Option(String) { -- cgit v1.2.3