Skip to content

Commit a1e0d0d

Browse files
committed
Add some comments
1 parent cc35d80 commit a1e0d0d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ui_test/src/comments.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,8 +80,7 @@ impl Comments {
8080
fn parse_checked(path: &Path, content: &str) -> Result<Self> {
8181
let mut this = Self::default();
8282

83-
// The line that a `|` will refer to
84-
let mut fallthrough_to = None;
83+
let mut fallthrough_to = None; // The line that a `|` will refer to.
8584
for (l, line) in content.lines().enumerate() {
8685
let l = l + 1; // enumerate starts at 0, but line numbers start at 1
8786
this.parse_checked_line(l, &mut fallthrough_to, line).map_err(|err| {
@@ -190,6 +189,7 @@ impl Comments {
190189
Some(i) => {
191190
let (command, args) = command.split_at(i);
192191
let mut args = args.chars();
192+
// Commands are separated from their arguments by ':' or ' '
193193
let next = args
194194
.next()
195195
.expect("the `position` above guarantees that there is at least one char");

0 commit comments

Comments
 (0)