diff --git a/compiler/rustc_ast/src/ptr.rs b/compiler/rustc_ast/src/ptr.rs index 0140fb752bf92..6cc6d3526d65c 100644 --- a/compiler/rustc_ast/src/ptr.rs +++ b/compiler/rustc_ast/src/ptr.rs @@ -28,7 +28,8 @@ use std::{slice, vec}; use rustc_serialize::{Decodable, Decoder, Encodable, Encoder}; use rustc_data_structures::stable_hasher::{HashStable, StableHasher}; -/// An owned smart pointer. + +/// An owned smart pointer. pub struct P { ptr: Box, } diff --git a/library/core/src/str/mod.rs b/library/core/src/str/mod.rs index 27178328be5c1..7357205ca052d 100644 --- a/library/core/src/str/mod.rs +++ b/library/core/src/str/mod.rs @@ -119,7 +119,7 @@ fn slice_error_fail_rt(s: &str, begin: usize, end: usize) -> ! { // 2. begin <= end assert!( begin <= end, - "begin <= end ({} <= {}) when slicing `{}`{}", + "begin should be <= end ({} is not <= {}) when slicing `{}`{}", begin, end, s_trunc,