Skip to content

Commit 68098dc

Browse files
committed
fix links in doc comments
1 parent 22a08f9 commit 68098dc

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

compiler/rustc_ast/src/token.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -718,7 +718,7 @@ pub enum NonterminalKind {
718718
}
719719

720720
/// Used when parsing a non-terminal (see `parse_nonterminal`) to determine if `:pat` should match
721-
/// `top_pat` or `pat<no_top_alt>`. See issue https://github.com/rust-lang/rust/pull/78935.
721+
/// `top_pat` or `pat<no_top_alt>`. See issue <https://github.com/rust-lang/rust/pull/78935>.
722722
pub enum OrPatNonterminalMode {
723723
TopPat,
724724
NoTopAlt,

compiler/rustc_expand/src/mbe/macro_parser.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -422,7 +422,7 @@ fn token_name_eq(t1: &Token, t2: &Token) -> bool {
422422
/// previously be a separator that follows `:pat`. Thus, we make a special case to parse `:pat` the
423423
/// old way if it happens to be followed by `|` in the matcher.
424424
///
425-
/// See https://github.com/rust-lang/rust/issues/54883 for more info.
425+
/// See <https://github.com/rust-lang/rust/issues/54883> for more info.
426426
fn or_pat_mode(item: &MatcherPosHandle<'_, '_>) -> OrPatNonterminalMode {
427427
if item.idx < item.top_elts.len() - 1 {
428428
// Look at the token after the current one to see if it is `|`.

0 commit comments

Comments
 (0)