diff options
| author | Ayush Kumar Mishra <ayush.k.mishra@xcelenergy.com> | 2020-04-21 22:29:20 +0530 |
|---|---|---|
| committer | Ayush Kumar Mishra <ayush.k.mishra@xcelenergy.com> | 2020-04-21 22:29:20 +0530 |
| commit | 1b362cd1d5f09f0031b2ce1b161152422a397a67 (patch) | |
| tree | 275390db15bf9164a4291ecb17d3a6f0472abf09 | |
| parent | 365b3cc7818f737860a0d71d7ca180e06bb7475a (diff) | |
| download | rust-1b362cd1d5f09f0031b2ce1b161152422a397a67.tar.gz rust-1b362cd1d5f09f0031b2ce1b161152422a397a67.zip | |
Minor refactoring
| -rw-r--r-- | src/librustc_lexer/src/lib.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/librustc_lexer/src/lib.rs b/src/librustc_lexer/src/lib.rs index c7a803e3029..be85a34bd39 100644 --- a/src/librustc_lexer/src/lib.rs +++ b/src/librustc_lexer/src/lib.rs @@ -237,7 +237,7 @@ pub enum Base { pub fn strip_shebang(input: &str) -> Option<usize> { debug_assert!(!input.is_empty()); let s: &str = &remove_whitespace(input); - if !s.starts_with("#!") || s.starts_with("#