Skip to content

Commit

Permalink
Improve Spanned::map documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
doonv committed May 7, 2024
1 parent 2c16446 commit 391167e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/builtin_parser.rs
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ pub struct Spanned<T> {
pub value: T,
}
impl<T> Spanned<T> {
/// Maps a `Spanned<T>` to `Spanned<U>` by applying a function to a
/// Maps a [`Spanned<T>`] to [`Spanned<U>`] by applying a function to the
/// contained `T` value, leaving the [`Span`] value untouched.
#[must_use]
pub fn map<U>(self, f: impl FnOnce(T) -> U) -> Spanned<U> {
Expand Down

0 comments on commit 391167e

Please sign in to comment.