book icon indicating copy to clipboard operation
book copied to clipboard

Use v1.58 captured ident formatting in examples

Open nyurik opened this issue 3 years ago • 0 comments

Per https://github.com/rust-lang/book/issues/3047, use captured identifiers instead of the positional ones for some examples, e.g.

-  println!("Worker {} got a job; executing.", id);
+  println!("Worker {id} got a job; executing.");

nyurik avatar Feb 06 '22 02:02 nyurik