aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/gleam/string.gleam4
1 files changed, 2 insertions, 2 deletions
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) {