3 ms·
Fn is spelled differently than auto but it sounds more like C++ than you might think. // C++ auto f() -> int32_t { return 1; } // Rust
by dtolnay 7y ago
Fn is spelled differently than auto but it sounds more like C++ than you might think.
// C++
auto f() -> int32_t {
return 1;
}
// Rust
fn f() -> i32 {
return 1;
}