Skip to content

Commit 7e59951

Browse files
committed
core: Convert obsolete fn syntax
1 parent 3aa92a9 commit 7e59951

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/libcore/ptr.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ pub pure fn ref_eq<T>(thing: &a/T, other: &b/T) -> bool {
190190
191191
SAFETY NOTE: Pointer-arithmetic. Dragons be here.
192192
*/
193-
pub unsafe fn array_each_with_len<T>(arr: **T, len: uint, cb: fn(*T)) {
193+
pub unsafe fn array_each_with_len<T>(arr: **T, len: uint, cb: &fn(*T)) {
194194
log(debug, "array_each_with_len: before iterate");
195195
if (arr as uint == 0) {
196196
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)) {
213213
pointer array. Barely less-dodgey Pointer Arithmetic.
214214
Dragons be here.
215215
*/
216-
pub unsafe fn array_each<T>(arr: **T, cb: fn(*T)) {
216+
pub unsafe fn array_each<T>(arr: **T, cb: &fn(*T)) {
217217
if (arr as uint == 0) {
218218
fail!(~"ptr::array_each_with_len failure: arr input is null pointer");
219219
}

0 commit comments

Comments
 (0)