Skip to content

Commit 2a87cc0

Browse files
authored
Merge pull request #2271 from andyps/addUnionToKeywords
Add union to the list of keywords
2 parents 6d4d121 + de7174e commit 2a87cc0

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/appendix-01-keywords.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,11 +50,14 @@ The following keywords currently have the functionality described.
5050
* `trait` - define a trait
5151
* `true` - Boolean true literal
5252
* `type` - define a type alias or associated type
53+
* `union` - define a [union] and is only a keyword when used in a union declaration
5354
* `unsafe` - denote unsafe code, functions, traits, or implementations
5455
* `use` - bring symbols into scope
5556
* `where` - denote clauses that constrain a type
5657
* `while` - loop conditionally based on the result of an expression
5758

59+
[union]: ../reference/items/unions.html
60+
5861
### Keywords Reserved for Future Use
5962

6063
The following keywords do not have any functionality but are reserved by Rust

0 commit comments

Comments
 (0)