Skip to content

Commit

Permalink
docs: fix try examples
Browse files Browse the repository at this point in the history
  • Loading branch information
Massolari committed Apr 4, 2024
1 parent ac23d8f commit 47bebe4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/remote_data.gleam
Original file line number Diff line number Diff line change
Expand Up @@ -104,17 +104,17 @@ pub fn map_error(
///
/// ## Examples
/// ```gleam
/// and_then(over: Success(42), with: fn(x) { Success(x * 2) })
/// try(over: Success(42), with: fn(x) { Success(x * 2) })
/// // -> Success(84)
/// ```
///
/// ```gleam
/// and_then(over: Failure("error"), with: fn(x) { Success(x * 2) })
/// try(over: Failure("error"), with: fn(x) { Success(x * 2) })
/// // -> Failure("error")
/// ```
///
/// ```gleam
/// and_then(over: Success(42), with: fn(x) { Failure("error") })
/// try(over: Success(42), with: fn(x) { Failure("error") })
/// // -> Failure("error")
/// ```
pub fn try(
Expand Down

0 comments on commit 47bebe4

Please sign in to comment.