mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-30 02:33:55 +00:00
Rollup merge of #31515 - steveklabnik:doc_drain, r=alexcrichton
This is the last bit of String docs needed to Close #29376
This commit is contained in:
commit
a1a0edc690
@ -1842,6 +1842,12 @@ impl fmt::Write for String {
|
||||
}
|
||||
|
||||
/// A draining iterator for `String`.
|
||||
///
|
||||
/// This struct is created by the [`drain()`] method on [`String`]. See its
|
||||
/// documentation for more.
|
||||
///
|
||||
/// [`drain()`]: struct.String.html#method.drain
|
||||
/// [`String`]: struct.String.html
|
||||
#[stable(feature = "drain", since = "1.6.0")]
|
||||
pub struct Drain<'a> {
|
||||
/// Will be used as &'a mut String in the destructor
|
||||
|
Loading…
Reference in New Issue
Block a user