ralfbiedert / cheats.rs

Rust Language Cheat Sheet - https://cheats.rs
https://cheats.rs
4.09k stars 382 forks source link

added trailing separator example to Macros & Attributes section #157

Closed fujiapple852 closed 2 years ago

fujiapple852 commented 2 years ago

Interestingly, these don't appear to covered by the Rust reference but they are noted in the The Little Book of Rust Macros and they do work.

fujiapple852 commented 2 years ago

I asked the Rust reference folks and they confirmed the trailing comma isn't part of the grammar so it probably doesn't merit inclusion here either.