this post was submitted on 05 Dec 2024
249 points (97.7% liked)

Programmer Humor

32739 readers
407 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 5 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
[–] 30p87@feddit.org 5 points 3 weeks ago (1 children)

Does that random 'true' at the end of the function have any purpose? Idk that weird ass language well

[–] Maven@lemmy.zip 14 points 3 weeks ago (1 children)

It's the default return. In rust a value without a ; at the end is returned.