1
Fork 0

auto merge of #18735 : utkarshkukreti/rust/remove-unnecessary-to_string-from-vec-docs, r=huonw

I don't think they're needed.
This commit is contained in:
bors 2014-11-08 14:41:37 +00:00
commit fa2983a1b7

View file

@ -801,14 +801,13 @@ impl<T> Vec<T> {
/// ///
/// # Example /// # Example
/// ``` /// ```
/// let mut v = vec!["foo".to_string(), "bar".to_string(), /// let mut v = vec!["foo", "bar", "baz", "qux"];
/// "baz".to_string(), "qux".to_string()];
/// ///
/// assert_eq!(v.swap_remove(1), Some("bar".to_string())); /// assert_eq!(v.swap_remove(1), Some("bar"));
/// assert_eq!(v, vec!["foo".to_string(), "qux".to_string(), "baz".to_string()]); /// assert_eq!(v, vec!["foo", "qux", "baz"]);
/// ///
/// assert_eq!(v.swap_remove(0), Some("foo".to_string())); /// assert_eq!(v.swap_remove(0), Some("foo"));
/// assert_eq!(v, vec!["baz".to_string(), "qux".to_string()]); /// assert_eq!(v, vec!["baz", "qux"]);
/// ///
/// assert_eq!(v.swap_remove(2), None); /// assert_eq!(v.swap_remove(2), None);
/// ``` /// ```