Stabilize Stdin::lines.
This commit is contained in:
parent
44628f7273
commit
2437422622
1 changed files with 1 additions and 2 deletions
|
|
@ -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.61.0")]
|
||||
pub fn lines(self) -> Lines<StdinLock<'static>> {
|
||||
self.lock().lines()
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue