diff options
| author | Tim Chevalier <chevalier@alum.wellesley.edu> | 2012-10-11 16:18:36 -0700 |
|---|---|---|
| committer | Tim Chevalier <chevalier@alum.wellesley.edu> | 2012-10-11 16:45:57 -0700 |
| commit | 66cea3700e6041bf0c7db280fc92fbb1812da724 (patch) | |
| tree | be13a47638033f414f7865036dc8337bdf15a8bb /src/libcore/vec.rs | |
| parent | 6986acb340f44d30438889452f5160ed2373573b (diff) | |
| download | rust-66cea3700e6041bf0c7db280fc92fbb1812da724.tar.gz rust-66cea3700e6041bf0c7db280fc92fbb1812da724.zip | |
Fix from_buf in test cases
Diffstat (limited to 'src/libcore/vec.rs')
| -rw-r--r-- | src/libcore/vec.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libcore/vec.rs b/src/libcore/vec.rs index 5d6e8584664..69b38c86f95 100644 --- a/src/libcore/vec.rs +++ b/src/libcore/vec.rs @@ -1973,7 +1973,7 @@ mod tests { // Test on-stack copy-from-buf. let a = ~[1, 2, 3]; let mut ptr = raw::to_ptr(a); - let b = raw::from_buf(ptr, 3u); + let b = from_buf(ptr, 3u); assert (len(b) == 3u); assert (b[0] == 1); assert (b[1] == 2); @@ -1982,7 +1982,7 @@ mod tests { // Test on-heap copy-from-buf. let c = ~[1, 2, 3, 4, 5]; ptr = raw::to_ptr(c); - let d = raw::from_buf(ptr, 5u); + let d = from_buf(ptr, 5u); assert (len(d) == 5u); assert (d[0] == 1); assert (d[1] == 2); |
