Skip to content

Commit 015d1f7

Browse files
shunjilinlpil
authored andcommitted
fix typo in lazy_unwrap docs
1 parent 8840592 commit 015d1f7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/gleam/result.gleam

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -170,10 +170,10 @@ pub fn unwrap(result: Result(a, e), or default: a) -> a {
170170
///
171171
/// ## Examples
172172
///
173-
/// > unwrap(Ok(1), fn() { 0 })
173+
/// > lazy_unwrap(Ok(1), fn() { 0 })
174174
/// 1
175175
///
176-
/// > unwrap(Error(""), fn() { 0 })
176+
/// > lazy_unwrap(Error(""), fn() { 0 })
177177
/// 0
178178
///
179179
pub fn lazy_unwrap(result: Result(a, e), or default: fn() -> a) -> a {

0 commit comments

Comments
 (0)