diff options
| author | Brian Anderson <banderson@mozilla.com> | 2012-08-14 16:54:13 -0700 |
|---|---|---|
| committer | Brian Anderson <banderson@mozilla.com> | 2012-08-15 14:14:20 -0700 |
| commit | 74c69e1053188d92b86bc8b28cbf1af87d31ea2d (patch) | |
| tree | 8c07fc440e572eb59787705a9dd11fcd789430e0 /src/libcore/ptr.rs | |
| parent | 8be0f665bcda9f5e4077d0be6ebc6aa382e72319 (diff) | |
Convert more core types to camel case
Diffstat (limited to 'src/libcore/ptr.rs')
| -rw-r--r-- | src/libcore/ptr.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/libcore/ptr.rs b/src/libcore/ptr.rs index b7b63af0afb..2c3ff0121ba 100644 --- a/src/libcore/ptr.rs +++ b/src/libcore/ptr.rs @@ -16,7 +16,7 @@ export to_uint; export ref_eq; export buf_len; export position; -export ptr; +export Ptr; import libc::{c_void, size_t}; @@ -156,13 +156,13 @@ fn ref_eq<T>(thing: &a/T, other: &b/T) -> bool { to_uint(thing) == to_uint(other) } -trait ptr { +trait Ptr { pure fn is_null() -> bool; pure fn is_not_null() -> bool; } /// Extension methods for pointers -impl<T> *T: ptr { +impl<T> *T: Ptr { /// Returns true if the pointer is equal to the null pointer. pure fn is_null() -> bool { is_null(self) } |
