Skip to content

Add missing parameter in UnsafeMutableRawPointer #42318

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

Conversation

amartini51
Copy link
Member

Here, as in UnsafeMutableRawPointer.storeBytes(of:toByteOffset:as:) "as" is an argument label and "type" is the parameter. Because the function body doesn't use this — it's just for type information — changing its name from "as" to "type" doesn't have any impact there.

I'm making this PR separate from the PR to fix the docs, which is already merged.

This change is also on a separate "do-not-merge" PR for an upcoming SE pitch in 067a14962bc482256b0c45ceed2edc136a75d407. If we merge that, we can discard this focused PR.

Here, as in UnsafeMutableRawPointer.storeBytes(of:toByteOffset:as:)
"as" is an argument label and "type" is the parameter.

Because the function body doesn't use this -- it's just for type
information -- changing its name from "as" to "type" doesn't have
any impact there.
@amartini51 amartini51 requested a review from glessard April 11, 2022 23:58
@amartini51
Copy link
Member Author

@swift-ci Please smoke test.

Copy link
Contributor

@glessard glessard left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We don't need to wait for the other PR. We'll adjust it to account for this one if/when it gets merged.

@glessard glessard self-requested a review April 12, 2022 00:07
@amartini51
Copy link
Member Author

@swift-ci Please smoke test Linux.

@glessard
Copy link
Contributor

@swift-ci please smoke test linux

1 similar comment
@glessard
Copy link
Contributor

@swift-ci please smoke test linux

@amartini51 amartini51 merged commit 06cbc7e into swiftlang:main Apr 13, 2022
@amartini51 amartini51 deleted the UnsafeMutableRawBufferPointer_missing_parameter branch April 13, 2022 18:48
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.

2 participants