Comment wording cleanups.

This commit is contained in:
Dan Gohman
2017-08-31 12:18:15 -07:00
parent bc528917fd
commit dc79d155ff
8 changed files with 15 additions and 15 deletions

View File

@@ -103,7 +103,7 @@ impl CheckerBuilder {
/// Add a potential directive line.
///
/// Returns true if this is a a directive with one of the known prefixes.
/// Returns true if this is a directive with one of the known prefixes.
/// Returns false if no known directive was found.
/// Returns an error if there is a problem with the directive.
pub fn directive(&mut self, l: &str) -> Result<bool> {
@@ -206,7 +206,7 @@ impl Checker {
state.recorder.directive(dct_idx);
if let Some((match_begin, match_end)) = state.match_positive(pat, range)? {
if let Directive::Unordered(_) = *dct {
// This was an unordered unordered match.
// This was an unordered match.
// Keep track of the largest matched position, but leave `last_ordered` alone.
state.max_match = max(state.max_match, match_end);
} else {