this post was submitted on 05 Dec 2024
236 points (97.6% liked)

Programmer Humor

34853 readers
435 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
[–] [email protected] 5 points 4 months ago (1 children)

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

[–] [email protected] 14 points 4 months ago (1 children)

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