remove exclamation mark from string-program
This commit is contained in:
@@ -0,0 +1,4 @@
|
||||
[package]
|
||||
name = "str-program"
|
||||
version = "0.1.0"
|
||||
edition = "2021"
|
||||
@@ -0,0 +1,13 @@
|
||||
const NAME: &str = "asqar";
|
||||
|
||||
fn hello() -> u8 {
|
||||
let hello = NAME;
|
||||
println!("hello {}", hello);
|
||||
0
|
||||
}
|
||||
|
||||
fn main() {
|
||||
for _ in 1..5 {
|
||||
let v = hello();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user