Why does `NonNull::align_offset` provide different quarantees than `ptr::align_offset`?

NonNull::align_offset

ptr::align_offset

It looks like NonNull::align_offset contains outdated ptr::align_offset description. I may be wrong though, so I rather ask before polluting repo's issues page :neutral_face:

I presume you're referring to the below PR? No discussion in there of NonNull, which suggests to me it may just have been an oversight—especially since it just delegates to the method on ptr.

3 Likes

outdated documentation on NonNull methods is not uncommon, i encountered something similar recently when deduplicating the documentation on all the as_ref methods

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.