Stabilize Stdin::lines.

This commit is contained in:
Mara Bos 2022-03-21 22:57:31 +01:00
parent 44628f7273
commit 2437422622

View file

@ -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()
}