Skip to content

Commit 444d380

Browse files
committed
applied suggestions
1 parent bee186b commit 444d380

File tree

2 files changed

+9
-6
lines changed

2 files changed

+9
-6
lines changed

compiler/rustc_parse/src/parser/diagnostics.rs

+6-4
Original file line numberDiff line numberDiff line change
@@ -2954,10 +2954,12 @@ impl<'a> Parser<'a> {
29542954
err
29552955
}
29562956

2957-
/// This checks if this is a git diff marker, one of
2958-
/// >>>>>
2959-
/// =====
2960-
/// <<<<<
2957+
/// This checks if this is a git diff marker, depending of the parameter passed.
2958+
///
2959+
/// * `>>>>>`
2960+
/// * `=====`
2961+
/// * `<<<<<`
2962+
///
29612963
pub fn is_git_diff_marker(&mut self, long_kind: &TokenKind, short_kind: &TokenKind) -> bool {
29622964
(0..3).all(|i| self.look_ahead(i, |tok| tok == long_kind))
29632965
&& self.look_ahead(3, |tok| tok == short_kind)

compiler/rustc_parse/src/parser/item.rs

+3-2
Original file line numberDiff line numberDiff line change
@@ -1690,8 +1690,9 @@ impl<'a> Parser<'a> {
16901690
}
16911691

16921692
/// This function parses the fields of record structs:
1693-
/// - struct S { ... }
1694-
/// - enum E { variant { ... } }
1693+
///
1694+
/// - `struct S { ... }`
1695+
/// - `enum E { Variant { ... } }`
16951696
pub(crate) fn parse_record_struct_body(
16961697
&mut self,
16971698
adt_ty: &str,

0 commit comments

Comments
 (0)