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 #87096

Fcp completed here: #87096 (comment)
  • Loading branch information
Dylan-DPC authored Apr 6, 2022

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
2 parents 8f36334 + f87d180 commit d2f1a0b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions library/std/src/io/stdio.rs
Original file line number Diff line number Diff line change
@@ -394,7 +394,6 @@ impl Stdin {
/// # Examples
///
/// ```no_run
/// #![feature(stdin_forwarders)]
/// use std::io;
///
/// let lines = io::stdin().lines();
@@ -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()
}

0 comments on commit d2f1a0b

Please sign in to comment.