update version placeholders

This commit is contained in:
Pietro Albini
2023-12-21 15:39:15 +01:00
parent ef1b78eabe
commit c00486c9bb
10 changed files with 19 additions and 19 deletions

View File

@@ -1088,7 +1088,7 @@ impl<T> Option<T> {
/// let x: Option<&usize> = v.get(5).inspect(|x| println!("got: {x}"));
/// ```
#[inline]
#[stable(feature = "result_option_inspect", since = "CURRENT_RUSTC_VERSION")]
#[stable(feature = "result_option_inspect", since = "1.76.0")]
pub fn inspect<F: FnOnce(&T)>(self, f: F) -> Self {
if let Some(ref x) = self {
f(x);