From 196cc0265cd1d998ce93c9ff216b896cc4ba648a Mon Sep 17 00:00:00 2001 From: Graydon Hoare Date: Thu, 11 Oct 2012 17:51:15 -0700 Subject: [PATCH] manual: add 'item', remove statement that built-in types are keywords. --- doc/rust.md | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/doc/rust.md b/doc/rust.md index 372f87ff0f8..19ecefe8527 100644 --- a/doc/rust.md +++ b/doc/rust.md @@ -2413,14 +2413,12 @@ The failure carries string representation of the false expression. ## Types -Every slot and value in a Rust program has a type. The _type_ of a *value* +Every slot, item and value in a Rust program has a type. The _type_ of a *value* defines the interpretation of the memory holding it. Built-in types and type-constructors are tightly integrated into the language, in nontrivial ways that are not possible to emulate in user-defined -types. User-defined types have limited capabilities. In addition, every -built-in type or type-constructor name is reserved as a *keyword* in Rust; -they cannot be used as user-defined identifiers in any context. +types. User-defined types have limited capabilities. ### Primitive types