book
book copied to clipboard
Inline all format arguments
The inlined format arguments are a bit easier to understand, especially for those familiar with the other languages (python, js).
To avoid any panic!("{foo}") issues, migrated to 2021 edition
@carols10cents hi, is there anything additional i should do on this pr?
@carols10cents a friendly ping :) Anything I can do to help? Thx!
No, please do not ping me. I have limited time to spend on the book, and I will get to this when I get to it.
@nyurik thanks for doing this work!
As a newcomer to Rust, reading the (excellent) book, I had assumed the lang didn't support this inline syntax for some reason. After some googling about why not, I found the RFC and discovered it was supported. I think this PR adds clarity to the text, and gives newbies a better sense of Rust's ergonomics.
Thanks @chriskrycho !!