OsrsNeedsF2P@lemmy.ml to Programmer Humor@lemmy.ml · 2 years agoThis is not a meme, I was trying to find content for an OC /c/programmerhumor post and found thisi.imgur.comexternal-linkmessage-square56fedilinkarrow-up149
arrow-up149external-linkThis is not a meme, I was trying to find content for an OC /c/programmerhumor post and found thisi.imgur.comOsrsNeedsF2P@lemmy.ml to Programmer Humor@lemmy.ml · 2 years agomessage-square56fedilink
minus-squareGNU/Dhruv@lemmy.mllinkfedilinkarrow-up3·2 years agoIt goes on the next line, so you can have open and close brackets at the same indent depth for easy visual matching.
minus-squareSteeve@lemmy.calinkfedilinkarrow-up3·2 years agoYour closing } goes on a new line below at the same indent depth as the line containing the open {!
minus-squareForbiddenRoot@lemmy.mllinkfedilinkarrow-up1·edit-22 years agofn main() { println!("WTF?"); } PS: I know what you meant
It goes on the next line, so you can have open and close brackets at the same indent depth for easy visual matching.
Your closing } goes on a new line below at the same indent depth as the line containing the open {!
fn main() { println!("WTF?"); }
PS: I know what you meant