Skip to content

Commit 196cc02

Browse files
committed
manual: add 'item', remove statement that built-in types are keywords.
1 parent a1c831b commit 196cc02

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

doc/rust.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2413,14 +2413,12 @@ The failure carries string representation of the false expression.
24132413

24142414
## Types
24152415

2416-
Every slot and value in a Rust program has a type. The _type_ of a *value*
2416+
Every slot, item and value in a Rust program has a type. The _type_ of a *value*
24172417
defines the interpretation of the memory holding it.
24182418

24192419
Built-in types and type-constructors are tightly integrated into the language,
24202420
in nontrivial ways that are not possible to emulate in user-defined
2421-
types. User-defined types have limited capabilities. In addition, every
2422-
built-in type or type-constructor name is reserved as a *keyword* in Rust;
2423-
they cannot be used as user-defined identifiers in any context.
2421+
types. User-defined types have limited capabilities.
24242422

24252423
### Primitive types
24262424

0 commit comments

Comments
 (0)