OsrsNeedsF2P@lemmy.ml to Programmer Humor@lemmy.mlEnglish · 1 year agoThis is not a meme, I was trying to find content for an OC /c/programmerhumor post and found thisi.imgur.comexternal-linkmessage-square49fedilinkarrow-up128arrow-down10
arrow-up128arrow-down1external-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.mlEnglish · 1 year agomessage-square49fedilink
minus-squareGNU/Dhruv@lemmy.mllinkfedilinkEnglisharrow-up2·1 year 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.calinkfedilinkEnglisharrow-up1·1 year agoYour closing } goes on a new line below at the same indent depth as the line containing the open {!
minus-squareForbiddenRoot@lemmy.mllinkfedilinkEnglisharrow-up1·edit-21 year 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