Skip to content

Commit 557330e

Browse files
author
Ulrik Sverdrup
committed
docs: Update SliceConcatExt docs for assoc types
1 parent 8c056b9 commit 557330e

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/libcollections/slice.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -999,7 +999,7 @@ impl<T> [T] {
999999
#[unstable(feature = "collections", reason = "U should be an associated type")]
10001000
/// An extension trait for concatenating slices
10011001
pub trait SliceConcatExt<T: ?Sized, U> {
1002-
/// Flattens a slice of `T` into a single value `U`.
1002+
/// Flattens a slice of `T` into a single value `Self::Output`.
10031003
///
10041004
/// # Examples
10051005
///
@@ -1009,7 +1009,8 @@ pub trait SliceConcatExt<T: ?Sized, U> {
10091009
#[stable(feature = "rust1", since = "1.0.0")]
10101010
fn concat(&self) -> U;
10111011

1012-
/// Flattens a slice of `T` into a single value `U`, placing a given separator between each.
1012+
/// Flattens a slice of `T` into a single value `Self::Output`, placing a given separator
1013+
/// between each.
10131014
///
10141015
/// # Examples
10151016
///

0 commit comments

Comments
 (0)