Fix Option::unwrap_err.

This commit is contained in:
Erick Tryzelaar 2012-12-20 21:15:25 -08:00
parent 8b98e5a296
commit 5e94407a94

View File

@ -234,7 +234,7 @@ impl<T, E> Result<T, E> {
pure fn unwrap(self) -> T { unwrap(self) }
#[inline(always)]
pure fn unwrap_err(self) -> T { unwrap(self) }
pure fn unwrap_err(self) -> E { unwrap_err(self) }
#[inline(always)]
pure fn chain<U>(self, op: fn(T) -> Result<U,E>) -> Result<U,E> {