refactor printing

This commit is contained in:
2026-01-17 16:12:08 +02:00
parent 0453ce4d2b
commit f5109c6338
+5 -8
View File
@@ -1,13 +1,10 @@
/// This is the best implementation of this program to ever exist. /// This is the best implementation of this program to ever exist.
fn main() { fn main() {
print_hello(); print("Hello, world!");
print_goodbye(); print("Goodbye, world!");
} }
fn print_hello() { // a function that prints the msg
println!("Hello, world!"); fn print(m: &str) {
} println!("{m}")
fn print_goodbye() {
println!("Goodbye, world!");
} }