We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
try
1 parent ac23d8f commit 47bebe4Copy full SHA for 47bebe4
src/remote_data.gleam
@@ -104,17 +104,17 @@ pub fn map_error(
104
///
105
/// ## Examples
106
/// ```gleam
107
-/// and_then(over: Success(42), with: fn(x) { Success(x * 2) })
+/// try(over: Success(42), with: fn(x) { Success(x * 2) })
108
/// // -> Success(84)
109
/// ```
110
111
112
-/// and_then(over: Failure("error"), with: fn(x) { Success(x * 2) })
+/// try(over: Failure("error"), with: fn(x) { Success(x * 2) })
113
/// // -> Failure("error")
114
115
116
117
-/// and_then(over: Success(42), with: fn(x) { Failure("error") })
+/// try(over: Success(42), with: fn(x) { Failure("error") })
118
119
120
pub fn try(
0 commit comments