diff options
| author | Alex Crichton <alex@alexcrichton.com> | 2013-10-21 13:08:31 -0700 |
|---|---|---|
| committer | Alex Crichton <alex@alexcrichton.com> | 2013-10-22 08:09:56 -0700 |
| commit | daf5f5a4d10513ff42e79fa7ef8819b170f3a13d (patch) | |
| tree | 7a07a79c43e02debcc6bbb33d90a5e41b70119e6 /src/libstd/either.rs | |
| parent | 15a6bdebab4e7b811b9a902e3f8ed225c59af06e (diff) | |
| download | rust-daf5f5a4d10513ff42e79fa7ef8819b170f3a13d.tar.gz rust-daf5f5a4d10513ff42e79fa7ef8819b170f3a13d.zip | |
Drop the '2' suffix from logging macros
Who doesn't like a massive renaming?
Diffstat (limited to 'src/libstd/either.rs')
| -rw-r--r-- | src/libstd/either.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libstd/either.rs b/src/libstd/either.rs index 657212fc692..262cdaed492 100644 --- a/src/libstd/either.rs +++ b/src/libstd/either.rs @@ -78,7 +78,7 @@ impl<L, R> Either<L, R> { pub fn expect_left(self, reason: &str) -> L { match self { Left(x) => x, - Right(_) => fail2!("{}", reason.to_owned()) + Right(_) => fail!("{}", reason.to_owned()) } } @@ -94,7 +94,7 @@ impl<L, R> Either<L, R> { pub fn expect_right(self, reason: &str) -> R { match self { Right(x) => x, - Left(_) => fail2!("{}", reason.to_owned()) + Left(_) => fail!("{}", reason.to_owned()) } } |
