Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR RUST

rust string interpolation

let (apples, bananas) = (4, 3);
// println! captures the identifiers when formatting: the string itself isn't interpolated by Rust.
println!("There are {apples} apples and {bananas} bananas.");
Source by en.wikipedia.org #
 
PREVIOUS NEXT
Tagged: #rust #string #interpolation
ADD COMMENT
Topic
Name
2+8 =