-
Notifications
You must be signed in to change notification settings - Fork 13k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update docs for ptr module. #23644
Update docs for ptr module. #23644
Conversation
//! methods of the [`PtrExt` trait](trait.PtrExt.html) to check for null. | ||
//! The `PtrExt` trait is imported by the prelude, so `is_null` etc. | ||
//! work everywhere. The `PtrExt` also defines the `offset` method, | ||
//! the `is_null` method of the `*const T` type to check for null. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
there's a trailing period that shouldn't be.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
also, this line should probably start with 'and'
Pushed a new commit with copy-edits addressing previous feedback. |
PR rust-lang#23104 moved `is_null` and `offset` to an inherent impl on the raw pointer type.
@bors: r+ rollup |
Thanks! |
📌 Commit 3f52d71 has been approved by |
PR rust-lang#23104 moved `is_null` and `offset` to an inherent impl on the raw pointer type. I'm not sure whether or how it's possible to link to docs for that impl. r? @steveklabnik
PR rust-lang#23104 moved `is_null` and `offset` to an inherent impl on the raw pointer type. I'm not sure whether or how it's possible to link to docs for that impl. r? @steveklabnik
PR #23104 moved
is_null
andoffset
to an inherent impl on the raw pointer type.I'm not sure whether or how it's possible to link to docs for that impl.
r? @steveklabnik