book icon indicating copy to clipboard operation
book copied to clipboard

Explain curly bracket with semicolon in tutorial

Open vinsburg opened this issue 2 years ago • 0 comments

While going through the guessing-game-tutorial, I've noticed we end up with an expression of this sort:

let some_var = match { some_variants };

Shell shocked, I stared at the }; combination only to realise it adheres to everything I had learned up until that point. So I figured it might be useful to others that I put it to words.

vinsburg avatar Sep 19 '22 18:09 vinsburg