Skip to content

Commit

Permalink
Rollup merge of #95185 - m-ou-se:stabilize-stdin-lines, r=Mark-Simula…
Browse files Browse the repository at this point in the history
…crum

Stabilize Stdin::lines.

Closes rust-lang/rust#87096

Fcp completed here: rust-lang/rust#87096 (comment)
  • Loading branch information
Dylan-DPC committed Apr 6, 2022
2 parents c53a16e + 2e8f0f2 commit 6289a31
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions std/src/io/stdio.rs
Original file line number Diff line number Diff line change
Expand Up @@ -394,7 +394,6 @@ impl Stdin {
/// # Examples
///
/// ```no_run
/// #![feature(stdin_forwarders)]
/// use std::io;
///
/// let lines = io::stdin().lines();
Expand All @@ -403,7 +402,7 @@ impl Stdin {
/// }
/// ```
#[must_use = "`self` will be dropped if the result is not used"]
#[unstable(feature = "stdin_forwarders", issue = "87096")]
#[stable(feature = "stdin_forwarders", since = "1.62.0")]
pub fn lines(self) -> Lines<StdinLock<'static>> {
self.lock().lines()
}
Expand Down

0 comments on commit 6289a31

Please sign in to comment.