-
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
Add doc examples on pointer types #32581
Conversation
@@ -212,6 +212,14 @@ pub unsafe fn write_volatile<T>(dst: *mut T, src: T) { | |||
#[lang = "const_ptr"] | |||
impl<T: ?Sized> *const T { | |||
/// Returns true if the pointer is null. | |||
/// | |||
/// Example: |
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.
Can these be the # Examples
headers like the rest of the docs?
Just some formatting things, I only left one comment, but it applies to all of them. Happy with this otherwise! |
Updated. |
It's After that, this is finally good to go 😄 |
And re-updated (I added ignore on |
@bors: r+ rollup |
📌 Commit 5b08ab5 has been approved by |
Add doc examples on pointer types r? @steveklabnik Fixes #29336
r? @steveklabnik
Fixes #29336