Update Examples

Glen Whitney 2024-08-26 22:48:50 +00:00
parent 07e79b1312
commit 880ff999ff

@ -972,7 +972,7 @@ fn main
&mut "Ferris" => "Rustacean alert!" &mut "Ferris" => "Rustacean alert!"
_ => "Hello" _ => "Hello"
println!("names: {:?}", names); println! "names: {:?}", names
@ -1062,8 +1062,8 @@ fn main
// TODO: uncomment the line above and see the compiler error. // TODO: uncomment the line above and see the compiler error.
let one = => 1 let one = => 1
println!("closure returning one: {}", one()); println! "closure returning one: {}", one()
}
``` ```
</td></tr></table> </td></tr></table>