diff options
| author | Marijn Haverbeke <[email protected]> | 2011-05-06 22:13:13 +0200 |
|---|---|---|
| committer | Marijn Haverbeke <[email protected]> | 2011-05-06 22:51:19 +0200 |
| commit | a3ec0b1f643d00b9418e4884bd7caa07bf052201 (patch) | |
| tree | 82000510ac9c9cf3f0c7cf4ae5f3c6b123b559cb /src/lib/UFind.rs | |
| parent | Register new snapshots. (diff) | |
| download | rust-a3ec0b1f643d00b9418e4884bd7caa07bf052201.tar.xz rust-a3ec0b1f643d00b9418e4884bd7caa07bf052201.zip | |
Rename std modules to be camelcased
(Have fun mergining your stuff with this.)
Diffstat (limited to 'src/lib/UFind.rs')
| -rw-r--r-- | src/lib/UFind.rs | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/lib/UFind.rs b/src/lib/UFind.rs index 9593e787..0bb06d7c 100644 --- a/src/lib/UFind.rs +++ b/src/lib/UFind.rs @@ -1,19 +1,19 @@ -import option.none; -import option.some; +import Option.none; +import Option.some; // A very naive implementation of union-find with unsigned integer nodes. -type node = option.t[uint]; +type node = Option.t[uint]; type ufind = rec(mutable vec[mutable node] nodes); fn make() -> ufind { let vec[mutable node] v = vec(mutable none[uint]); - _vec.pop(v); // FIXME: botch + Vec.pop(v); // FIXME: botch ret rec(mutable nodes=v); } fn make_set(&ufind ufnd) -> uint { - auto idx = _vec.len(ufnd.nodes); + auto idx = Vec.len(ufnd.nodes); ufnd.nodes += vec(mutable none[uint]); ret idx; } |