Skip to content

Commit

Permalink
fix "make tidy" failure
Browse files Browse the repository at this point in the history
  • Loading branch information
tshepang committed Jan 3, 2016
1 parent f20a139 commit 4a10628
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/libsyntax/parse/lexer/mod.rs
Expand Up @@ -1616,8 +1616,9 @@ pub fn is_doc_comment(s: &str) -> bool {
}

pub fn is_block_doc_comment(s: &str) -> bool {
// Prevent `/**/` from being parsed as a doc comment
let res = ((s.starts_with("/**") && *s.as_bytes().get(3).unwrap_or(&b' ') != b'*') ||
s.starts_with("/*!")) && s.len() >= 5; // Prevent `/**/` from being parsed as a doc comment
s.starts_with("/*!")) && s.len() >= 5;
debug!("is {:?} a doc comment? {}", s, res);
res
}
Expand Down

0 comments on commit 4a10628

Please sign in to comment.