Skip to content

Commit 4841dd8

Browse files
committed
Rename variable
1 parent 4843334 commit 4841dd8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/manifest.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,9 @@ pub fn split_input(
2929
toolchain: Option<String>,
3030
) -> MainResult<(String, PathBuf, Option<String>)> {
3131
fn contains_main_method(source: &str) -> bool {
32-
let re_shebang: Regex =
32+
let re_main: Regex =
3333
Regex::new(r#"(?m)^ *(pub )?(async )?(extern "C" )?fn main *\("#).unwrap();
34-
re_shebang.is_match(source)
34+
re_main.is_match(source)
3535
}
3636

3737
let source_in_package = package_path.as_ref().join(script_name);

0 commit comments

Comments
 (0)