Skip to content

Commit 1b362cd

Browse files
author
Ayush Kumar Mishra
committed
Minor refactoring
1 parent 365b3cc commit 1b362cd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/librustc_lexer/src/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ pub enum Base {
237237
pub fn strip_shebang(input: &str) -> Option<usize> {
238238
debug_assert!(!input.is_empty());
239239
let s: &str = &remove_whitespace(input);
240-
if !s.starts_with("#!") || s.starts_with("#![") || s.starts_with("#! [") {
240+
if !s.starts_with("#!") || s.starts_with("#![") {
241241
return None;
242242
}
243243
Some(input.find('\n').unwrap_or(input.len()))

0 commit comments

Comments
 (0)