We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 365b3cc commit 1b362cdCopy full SHA for 1b362cd
src/librustc_lexer/src/lib.rs
@@ -237,7 +237,7 @@ pub enum Base {
237
pub fn strip_shebang(input: &str) -> Option<usize> {
238
debug_assert!(!input.is_empty());
239
let s: &str = &remove_whitespace(input);
240
- if !s.starts_with("#!") || s.starts_with("#![") || s.starts_with("#! [") {
+ if !s.starts_with("#!") || s.starts_with("#![") {
241
return None;
242
}
243
Some(input.find('\n').unwrap_or(input.len()))
0 commit comments