Skip to content

Commit 47bebe4

Browse files
committed
docs: fix try examples
1 parent ac23d8f commit 47bebe4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/remote_data.gleam

+3-3
Original file line numberDiff line numberDiff line change
@@ -104,17 +104,17 @@ pub fn map_error(
104104
///
105105
/// ## Examples
106106
/// ```gleam
107-
/// and_then(over: Success(42), with: fn(x) { Success(x * 2) })
107+
/// try(over: Success(42), with: fn(x) { Success(x * 2) })
108108
/// // -> Success(84)
109109
/// ```
110110
///
111111
/// ```gleam
112-
/// and_then(over: Failure("error"), with: fn(x) { Success(x * 2) })
112+
/// try(over: Failure("error"), with: fn(x) { Success(x * 2) })
113113
/// // -> Failure("error")
114114
/// ```
115115
///
116116
/// ```gleam
117-
/// and_then(over: Success(42), with: fn(x) { Failure("error") })
117+
/// try(over: Success(42), with: fn(x) { Failure("error") })
118118
/// // -> Failure("error")
119119
/// ```
120120
pub fn try(

0 commit comments

Comments
 (0)