diff options
| author | bors <bors@rust-lang.org> | 2014-01-06 11:56:37 -0800 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2014-01-06 11:56:37 -0800 |
| commit | 3afa0b97c4ce81b3bbfd1e0dd4a6609742957678 (patch) | |
| tree | 755131ccf75ae15d58777809d592bc37bf8865fc | |
| parent | 0da105a8b7b6b1e0568e8ff20f6ff4b13cc7ecc2 (diff) | |
| parent | 8bd52024ae7ac2048ddb11e70839ddda1d058872 (diff) | |
auto merge of #11335 : rlane/rust/fix-vector-doc, r=alexcrichton
| -rw-r--r-- | doc/rust.md | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/doc/rust.md b/doc/rust.md index ea592d1fde5..81d84c6661a 100644 --- a/doc/rust.md +++ b/doc/rust.md @@ -3054,8 +3054,7 @@ assert!(b != "world"); The vector type constructor represents a homogeneous array of values of a given type. A vector has a fixed size. (Operations like `vec.push` operate solely on owned vectors.) -A vector type can be annotated with a _definite_ size, -written with a trailing asterisk and integer literal, such as `[int * 10]`. +A vector type can be annotated with a _definite_ size, such as `[int, ..10]`. Such a definite-sized vector type is a first-class type, since its size is known statically. A vector without such a size is said to be of _indefinite_ size, and is therefore not a _first-class_ type. |
