1
Fork 0

Switch the compiler over to using ~[] notation instead of []/~. Closes #2759.

This commit is contained in:
Michael Sullivan 2012-06-29 16:26:56 -07:00
parent e6baf44f19
commit 98e161f00e
420 changed files with 4077 additions and 4078 deletions

View file

@ -44,11 +44,11 @@ type page_port = comm::port<option<doc::page>>;
type page_chan = comm::chan<option<doc::page>>;
fn make_doc_from_pages(page_port: page_port) -> doc::doc {
let mut pages = []/~;
let mut pages = ~[];
loop {
let val = comm::recv(page_port);
if option::is_some(val) {
pages += [option::unwrap(val)]/~;
pages += ~[option::unwrap(val)];
} else {
break;
}