Skip to content

Commit 3afa0b9

Browse files
committed
auto merge of #11335 : rlane/rust/fix-vector-doc, r=alexcrichton
2 parents 0da105a + 8bd5202 commit 3afa0b9

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

doc/rust.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3054,8 +3054,7 @@ assert!(b != "world");
30543054
The vector type constructor represents a homogeneous array of values of a given type.
30553055
A vector has a fixed size.
30563056
(Operations like `vec.push` operate solely on owned vectors.)
3057-
A vector type can be annotated with a _definite_ size,
3058-
written with a trailing asterisk and integer literal, such as `[int * 10]`.
3057+
A vector type can be annotated with a _definite_ size, such as `[int, ..10]`.
30593058
Such a definite-sized vector type is a first-class type, since its size is known statically.
30603059
A vector without such a size is said to be of _indefinite_ size,
30613060
and is therefore not a _first-class_ type.

0 commit comments

Comments
 (0)