Why does un-colon-delimited hello world compile succesfully?

fn main() {
    println!("Hello, world")

Seems to run with no errors. Why is that?

println does return () (any function without a return value does - think void), which matches the return type of main here

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.