mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-01 06:51:58 +00:00
libcore: fix a typo
This commit is contained in:
parent
c0f357924d
commit
afeaf7d88c
@ -53,7 +53,7 @@ pure fn get_ref<T, U>(res: &a/Result<T, U>) -> &a/T {
|
||||
pure fn get_err<T, U: copy>(res: Result<T, U>) -> U {
|
||||
match res {
|
||||
Err(u) => u,
|
||||
Ok(_) => fail ~"get_error called on ok result"
|
||||
Ok(_) => fail ~"get_err called on ok result"
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user