commit | e7ea1656ab6b741082ba705048ef5e6811bb6dd5 | [log] [tgz] |
---|---|---|
author | David Tolnay <dtolnay@gmail.com> | Sun Sep 02 09:11:54 2018 -0700 |
committer | David Tolnay <dtolnay@gmail.com> | Sun Sep 02 09:11:54 2018 -0700 |
tree | 519f974a9a1a40f89549320d030eb9923c304437 | |
parent | c142b0989397f7fc06f4e3ee41b2e5968da2a80c [diff] [blame] |
Provide example of MiniFunction input
diff --git a/src/expr.rs b/src/expr.rs index 27dae63..796fe67 100644 --- a/src/expr.rs +++ b/src/expr.rs
@@ -2345,6 +2345,12 @@ /// use syn::parse::{Parse, ParseStream, Result}; /// /// // Parse a function with no generics or parameter list. + /// // + /// // fn playground { + /// // let mut x = 1; + /// // x += 1; + /// // println!("{}", x); + /// // } /// struct MiniFunction { /// attrs: Vec<Attribute>, /// fn_token: Token![fn],