about summary refs log tree commit diff
path: root/src/libcore/ptr.rs
diff options
context:
space:
mode:
authorYoungmin Yoo <youngmin.yoo@samsung.com>2013-05-14 18:52:12 +0900
committerYoungmin Yoo <youngmin.yoo@samsung.com>2013-05-15 11:05:28 +0900
commita2a8596c3dd963e7b51f11998cffc46033bf6d63 (patch)
tree2ea272be21c9a7b7d486be08fe0a3dcb10c8a132 /src/libcore/ptr.rs
parentc30414f980eb3e8010640f6c83a5ef6f8e6ab047 (diff)
downloadrust-a2a8596c3dd963e7b51f11998cffc46033bf6d63.tar.gz
rust-a2a8596c3dd963e7b51f11998cffc46033bf6d63.zip
Rename vec::len(var) to var.len()
Diffstat (limited to 'src/libcore/ptr.rs')
-rw-r--r--src/libcore/ptr.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libcore/ptr.rs b/src/libcore/ptr.rs
index 9feb8676036..e116dc01943 100644
--- a/src/libcore/ptr.rs
+++ b/src/libcore/ptr.rs
@@ -441,7 +441,7 @@ pub mod ptr_tests {
             let arr_ptr = &arr[0];
             let mut ctr = 0;
             let mut iteration_count = 0;
-            array_each_with_len(arr_ptr, vec::len(arr),
+            array_each_with_len(arr_ptr, arr.len(),
                                 |e| {
                                          let actual = str::raw::from_c_str(e);
                                          let expected = copy expected_arr[ctr];