Skip to content

Commit 5e94407

Browse files
committed
Fix Option::unwrap_err.
1 parent 8b98e5a commit 5e94407

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libcore/result.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@ impl<T, E> Result<T, E> {
234234
pure fn unwrap(self) -> T { unwrap(self) }
235235

236236
#[inline(always)]
237-
pure fn unwrap_err(self) -> T { unwrap(self) }
237+
pure fn unwrap_err(self) -> E { unwrap_err(self) }
238238

239239
#[inline(always)]
240240
pure fn chain<U>(self, op: fn(T) -> Result<U,E>) -> Result<U,E> {

0 commit comments

Comments
 (0)