Re:Implementing a Type-safe printf in Rust
by mqus on Tuesday August 18, 2020 @06:23AM
(#24197065)
Well, the variables are only borrowed for the short time it takes to print that line. The borrow is terminated as soon as the print is finished. Because the println! macro does not return anything, there is no reason to extend the borrow.
[ Parent
| on HN ]
There are no comments on this comment yet.