add comment to main

This commit is contained in:
2026-01-17 16:34:22 +02:00
parent 585128b7cb
commit 748620b307
+2
View File
@@ -2,9 +2,11 @@
fn main() { fn main() {
print("Hello, world!"); print("Hello, world!");
print("Goodbye, world!"); print("Goodbye, world!");
// some (not really) documentation comment
} }
// a function that prints the msg // a function that prints the msg
fn print(m: &str) { fn print(m: &str) {
println!("{m}") println!("{m}")
// hello ?
} }