logoalt Hacker News

Machalast Wednesday at 12:24 AM1 replyview on HN

It's a reference to a unit type. unit is pretty useless (like void in Java). It's sort of a silly thing you wouldn't do in real production code, just whoever wrote this example picked a type that is short to type, would be understood by a Rust programmer, and doesn't require any external context.


Replies

38last Wednesday at 3:07 AM

"u8" would have done the job fine and actually been readable

show 1 reply