this post was submitted on 05 Dec 2024
250 points (98.1% liked)

Programmer Humor

32718 readers
577 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 2 weeks 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 2 weeks ago (1 children)

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