remove exclamation mark from string-program

This commit is contained in:
2022-06-28 15:45:26 +01:00
parent da24cc1f50
commit 0facc24fa7
7 changed files with 40 additions and 2 deletions

4
str-program/Cargo.toml Normal file
View File

@ -0,0 +1,4 @@
[package]
name = "str-program"
version = "0.1.0"
edition = "2021"

13
str-program/src/main.rs Normal file
View File

@ -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();
}
}