std::r#try! - avoid link to nightly docs

Use a relative link to the current version of rust-by-example rather than
sending people to the nightly version.
This commit is contained in:
Daniel Scherzer 2026-02-17 11:19:03 -08:00
parent dfbfbf785f
commit 4deff63004
No known key found for this signature in database
GPG key ID: EC64F10448CEAB6F

View file

@ -445,7 +445,7 @@ macro_rules! matches {
/// [raw-identifier syntax][ris]: `r#try`.
///
/// [propagating-errors]: https://doc.rust-lang.org/book/ch09-02-recoverable-errors-with-result.html#a-shortcut-for-propagating-errors-the--operator
/// [ris]: https://doc.rust-lang.org/nightly/rust-by-example/compatibility/raw_identifiers.html
/// [ris]: ../rust-by-example/compatibility/raw_identifiers.html
///
/// `try!` matches the given [`Result`]. In case of the `Ok` variant, the
/// expression has the value of the wrapped value.