about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorBrian Anderson <banderson@mozilla.com>2013-03-11 15:42:00 -0700
committerBrian Anderson <banderson@mozilla.com>2013-03-11 15:42:00 -0700
commit7e5995197fa41002fd0ea78bf08208247e20ad51 (patch)
tree2b85849db853691cb6d410c30ed7e23df8d129cf /src
parent3aa92a91c90ac2b46a705f6cae6e9803aa956a74 (diff)
downloadrust-7e5995197fa41002fd0ea78bf08208247e20ad51.tar.gz
rust-7e5995197fa41002fd0ea78bf08208247e20ad51.zip
core: Convert obsolete fn syntax
Diffstat (limited to 'src')
-rw-r--r--src/libcore/ptr.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libcore/ptr.rs b/src/libcore/ptr.rs
index e622b0c4ca3..ace70d7f061 100644
--- a/src/libcore/ptr.rs
+++ b/src/libcore/ptr.rs
@@ -190,7 +190,7 @@ pub pure fn ref_eq<T>(thing: &a/T, other: &b/T) -> bool {
 
   SAFETY NOTE: Pointer-arithmetic. Dragons be here.
 */
-pub unsafe fn array_each_with_len<T>(arr: **T, len: uint, cb: fn(*T)) {
+pub unsafe fn array_each_with_len<T>(arr: **T, len: uint, cb: &fn(*T)) {
     log(debug, "array_each_with_len: before iterate");
     if (arr as uint == 0) {
         fail!(~"ptr::array_each_with_len failure: arr input is null pointer");
@@ -213,7 +213,7 @@ pub unsafe fn array_each_with_len<T>(arr: **T, len: uint, cb: fn(*T)) {
   pointer array. Barely less-dodgey Pointer Arithmetic.
   Dragons be here.
 */
-pub unsafe fn array_each<T>(arr: **T, cb: fn(*T)) {
+pub unsafe fn array_each<T>(arr: **T, cb: &fn(*T)) {
     if (arr as uint == 0) {
         fail!(~"ptr::array_each_with_len failure: arr input is null pointer");
     }