diff options
| author | Bruce Mitchener <bruce.mitchener@gmail.com> | 2017-07-23 22:06:16 +0700 |
|---|---|---|
| committer | Bruce Mitchener <bruce.mitchener@gmail.com> | 2017-07-23 22:48:01 +0700 |
| commit | 539df8121bf799526bcb36a1613ac3fd3e255a61 (patch) | |
| tree | c5296aa81a268ca4ffbab4db99ce27aa5eb981da /src/libserialize | |
| parent | 3cf2c04c799024bbec8e7b7187c2e8d39ace77b6 (diff) | |
| download | rust-539df8121bf799526bcb36a1613ac3fd3e255a61.tar.gz rust-539df8121bf799526bcb36a1613ac3fd3e255a61.zip | |
Fix some doc/comment typos.
Diffstat (limited to 'src/libserialize')
| -rw-r--r-- | src/libserialize/serialize.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libserialize/serialize.rs b/src/libserialize/serialize.rs index c6847249803..6d67bbc06cc 100644 --- a/src/libserialize/serialize.rs +++ b/src/libserialize/serialize.rs @@ -729,7 +729,7 @@ pub trait SpecializationError { /// `S` is the encoder/decoder state type, /// `T` is the type being encoded/decoded, and /// the arguments are the names of the trait - /// and method that should've been overriden. + /// and method that should've been overridden. fn not_found<S, T: ?Sized>(trait_name: &'static str, method_name: &'static str) -> Self; } @@ -737,7 +737,7 @@ pub trait SpecializationError { impl<E> SpecializationError for E { default fn not_found<S, T: ?Sized>(trait_name: &'static str, method_name: &'static str) -> E { - panic!("missing specializaiton: `<{} as {}<{}>>::{}` not overriden", + panic!("missing specialization: `<{} as {}<{}>>::{}` not overridden", unsafe { intrinsics::type_name::<S>() }, trait_name, unsafe { intrinsics::type_name::<T>() }, |
