commit | 614a01433b021d24359eca97d0f8619f250fa3db | [log] [tgz] |
---|---|---|
author | David Tolnay <dtolnay@gmail.com> | Sun Jan 07 10:25:43 2018 -0800 |
committer | David Tolnay <dtolnay@gmail.com> | Sun Jan 07 10:25:43 2018 -0800 |
tree | 9d39aad26cca6ab09bf106d1bfbc191c9b6a753a | |
parent | 7977733c8533869c6c20cd9fcf3a186d5f83a689 [diff] [blame] |
Document syntax tree enums idiom
diff --git a/src/ty.rs b/src/ty.rs index 9538260..39bae38 100644 --- a/src/ty.rs +++ b/src/ty.rs
@@ -16,6 +16,12 @@ ast_enum_of_structs! { /// The possible types that a Rust value could have. + /// + /// # Syntax tree enum + /// + /// This type is a [syntax tree enum]. + /// + /// [syntax tree enum]: enum.Expr.html#syntax-tree-enums pub enum Type { /// A dynamically sized slice type: `[T]`. pub Slice(TypeSlice {