Rewrite everything to use [] instead of vec() in value position.

This commit is contained in:
Graydon Hoare 2011-05-16 18:21:22 -07:00
parent ae030c5bf2
commit fbbc1a77d2
87 changed files with 1137 additions and 1134 deletions

View file

@ -6,7 +6,7 @@
// error-pattern:bounds check
fn main() {
let vec[int] v = vec(10);
let vec[int] v = [10];
let int x = 0;
assert (v.(x) == 10);
// Bounds-check failure.

View file

@ -6,7 +6,7 @@
// error-pattern:bounds check
fn main() {
let vec[int] v = vec(10, 20);
let vec[int] v = [10, 20];
let int x = 0;
assert (v.(x) == 10);
// Bounds-check failure.