Skip to content

Commit

Permalink
Rollup merge of #42370 - mbrubeck:docs, r=frewsxcv
Browse files Browse the repository at this point in the history
Add [[T]] -> [T] examples to SliceConcatExt docs

None
  • Loading branch information
Mark-Simulacrum authored Jun 2, 2017
2 parents 7a2d4b3 + 818ca98 commit 1a3d026
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/libcollections/slice.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1515,6 +1515,7 @@ pub trait SliceConcatExt<T: ?Sized> {
///
/// ```
/// assert_eq!(["hello", "world"].concat(), "helloworld");
/// assert_eq!([[1, 2], [3, 4]].concat(), [1, 2, 3, 4]);
/// ```
#[stable(feature = "rust1", since = "1.0.0")]
fn concat(&self) -> Self::Output;
Expand All @@ -1526,6 +1527,7 @@ pub trait SliceConcatExt<T: ?Sized> {
///
/// ```
/// assert_eq!(["hello", "world"].join(" "), "hello world");
/// assert_eq!([[1, 2], [3, 4]].join(&0), [1, 2, 0, 3, 4]);
/// ```
#[stable(feature = "rename_connect_to_join", since = "1.3.0")]
fn join(&self, sep: &T) -> Self::Output;
Expand Down

0 comments on commit 1a3d026

Please sign in to comment.