Whitespace cleanup according to Rust's style guidelines.
This commit is contained in:
parent
f0bfbd3e72
commit
dc0fd65af2
1 changed files with 3 additions and 3 deletions
|
|
@ -2206,7 +2206,7 @@ impl<'a> From<&'a str> for String {
|
|||
#[cfg(not(test))]
|
||||
#[stable(feature = "string_from_box", since = "1.18.0")]
|
||||
impl From<Box<str>> for String {
|
||||
/// Converts the given boxed `str` slice to a `String`.
|
||||
/// Converts the given boxed `str` slice to a `String`.
|
||||
/// It is notable that the `str` slice is owned.
|
||||
///
|
||||
/// # Examples
|
||||
|
|
@ -2216,7 +2216,7 @@ impl From<Box<str>> for String {
|
|||
/// ```
|
||||
/// let s1 : String = String::from("hello world");
|
||||
/// let s2 : Box<str> = s1.into_boxed_str();
|
||||
/// let s3 : String = String::from(s2);
|
||||
/// let s3 : String = String::from(s2);
|
||||
///
|
||||
/// assert_eq!("hello world", s3)
|
||||
/// ```
|
||||
|
|
@ -2308,7 +2308,7 @@ impl From<String> for Vec<u8> {
|
|||
/// ```
|
||||
/// let s1 = String::from("hello world");
|
||||
/// let v1 = Vec::from(s1);
|
||||
///
|
||||
///
|
||||
/// for b in v1 {
|
||||
/// println!("{}", b);
|
||||
/// }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue