Skip to content
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

ptr::RawPtr, spell out units used for the offset argument. #12420

Merged
merged 1 commit into from
Feb 21, 2014

Conversation

pnkfelix
Copy link
Member

ptr::RawPtr, spell out units used for the offset argument.

spell out units used for the offset argument, so that callers do not
try to scale to byte units themselves.

(this was originally landed in PR #11002 for the stand-alone functions, but that PR did not modify the RawPtr methods, since that had no doc at all at the time. Now RawPtr has the only documentation for offset, since the stand-alone functions went away in PR #12167 / PR #12248.)

spell out units used for the `offset` argument, so that callers do not
try to scale to byte units themselves.
bors added a commit that referenced this pull request Feb 21, 2014
…r=alexcrichton

ptr::RawPtr, spell out units used for the `offset` argument.

spell out units used for the `offset` argument, so that callers do not
try to scale to byte units themselves.

(this was originally landed in PR #11002 for the stand-alone functions, but that PR did not modify the `RawPtr` methods, since that had no doc at all at the time.  Now `RawPtr` has the *only* documentation for `offset`, since the stand-alone functions went away in PR #12167 / PR #12248.)
@bors bors closed this Feb 21, 2014
@bors bors merged commit e2f99b9 into rust-lang:master Feb 21, 2014
bors added a commit to rust-lang-ci/rust that referenced this pull request Jul 25, 2022
…ykril

fix: avoid adding enum parens in use path

close rust-lang#12420
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants