MasterNerd@lemm.ee to Programmer Humor@lemmy.ml · 2 days agoLabels go brrrrlemm.eeimagemessage-square7fedilinkarrow-up1130arrow-down116
arrow-up1114arrow-down1imageLabels go brrrrlemm.eeMasterNerd@lemm.ee to Programmer Humor@lemmy.ml · 2 days agomessage-square7fedilink
minus-squarerenegadesporkAlinkfedilinkEnglisharrow-up4·edit-21 day agolet comment: String = String::from(“lol”); println!(“{}”, comment);
minus-squareBogasse@lemmy.mllinkfedilinkarrow-up9·edit-21 day agoprintln!("{comment}"); C’mon, it’s 2025!
minus-squarespacecadet@lemm.eelinkfedilinkarrow-up1arrow-down1·1 day agoNot inside a main function, won’t pass rust compiler check
minus-squarerenegadesporkAlinkfedilinkEnglisharrow-up1·1 day agoJust a snippet from a bigger function.
let comment: String = String::from(“lol”);
println!(“{}”, comment);
println!("{comment}");
C’mon, it’s 2025!
Not inside a main function, won’t pass rust compiler check
Just a snippet from a bigger function.