Skip to content

Commit

Permalink
stabilise bound_map
Browse files Browse the repository at this point in the history
  • Loading branch information
Dylan-DPC committed Nov 27, 2023
1 parent 48cfbe0 commit a43dc2b
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions library/core/src/ops/range.rs
Original file line number Diff line number Diff line change
Expand Up @@ -710,7 +710,6 @@ impl<T> Bound<T> {
/// # Examples
///
/// ```
/// #![feature(bound_map)]
/// use std::ops::Bound::*;
///
/// let bound_string = Included("Hello, World!");
Expand All @@ -719,7 +718,6 @@ impl<T> Bound<T> {
/// ```
///
/// ```
/// #![feature(bound_map)]
/// use std::ops::Bound;
/// use Bound::*;
///
Expand All @@ -728,7 +726,7 @@ impl<T> Bound<T> {
/// assert_eq!(unbounded_string.map(|s| s.len()), Unbounded);
/// ```
#[inline]
#[unstable(feature = "bound_map", issue = "86026")]
#[stable(feature = "bound_map", since = "CURRENT_RUSTC_VERSION")]
pub fn map<U, F: FnOnce(T) -> U>(self, f: F) -> Bound<U> {
match self {
Unbounded => Unbounded,
Expand Down

0 comments on commit a43dc2b

Please sign in to comment.