Skip to content

Commit a2c2124

Browse files
committed
Mention strip_fragment in resolve_against's doc
1 parent 37a1829 commit a2c2124

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/ri.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -398,7 +398,7 @@ macro_rules! ri_maybe_ref {
398398
#[doc = concat!("[`", $abnf_abs, "`][abnf] ABNF rule from RFC ", $rfc, ".")]
399399
///
400400
#[doc = concat!("To prepare a base ", $nr_name, ",")]
401-
/// you can use [`with_fragment`] or [`set_fragment`] to remove the fragment
401+
/// you can use [`strip_fragment`], [`with_fragment`] or [`set_fragment`] to remove the fragment
402402
#[doc = concat!("from any ", $nr_name, ".")]
403403
/// Note that a base without fragment does **not** guarantee a successful resolution
404404
/// (see the **must** below).
@@ -426,6 +426,7 @@ macro_rules! ri_maybe_ref {
426426
/// Use [`normalize`] if necessary.
427427
///
428428
#[doc = concat!("[abnf]: ", $abnf_abs_link)]
429+
#[doc = concat!("[`strip_fragment`]: ", stringify!($NonRefTy), "::strip_fragment")]
429430
#[doc = concat!("[`with_fragment`]: ", stringify!($NonRefTy), "::with_fragment")]
430431
#[doc = concat!("[`set_fragment`]: ", stringify!($NonRefTy), "::set_fragment")]
431432
/// [rootless]: EStr::<Path>::is_rootless

0 commit comments

Comments
 (0)