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

Clarify terms in doc comments #72829

Merged
merged 1 commit into from
Jun 1, 2020
Merged

Clarify terms in doc comments #72829

merged 1 commit into from
Jun 1, 2020

Conversation

JOE1994
Copy link
Contributor

@JOE1994 JOE1994 commented May 31, 2020

Doc comments of copy_from_slice say that people should use clone_from_slice
when 'src' doesn't implement Copy. However, 'src' is a reference and
it always implements Copy. The term 'src' should be fixed to T(element type of slice 'src') in
the doc comments.

Thank you for reviewing this PR :) 😺

Doc comments of 'copy_from_slice' say that people should use 'clone_from_slice'
when 'src' doesn't implement 'Copy'. However, 'src' is a reference and
it always implements 'Copy'. The term 'src' should be fixed to 'T' in
the doc comments.

Thank you for reviewing this PR :)
@rust-highfive
Copy link
Collaborator

r? @shepmaster

(rust_highfive has picked a reviewer for you, use r? to override)

@rust-highfive rust-highfive added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label May 31, 2020
@jonas-schievink
Copy link
Contributor

@bors r+ rollup

@bors
Copy link
Contributor

bors commented May 31, 2020

📌 Commit dd0338f has been approved by jonas-schievink

@bors bors added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels May 31, 2020
bors added a commit to rust-lang-ci/rust that referenced this pull request May 31, 2020
Rollup of 5 pull requests

Successful merges:

 - rust-lang#72691 (Fix escape key handling)
 - rust-lang#72807 (Avoid setting wrong obligation cause span of associated type mismatch)
 - rust-lang#72812 (Miri tests: skip parts of test_char_range)
 - rust-lang#72829 (Clarify terms in doc comments)
 - rust-lang#72830 (Fix release notes for niche initialization change)

Failed merges:

r? @ghost
@bors bors merged commit 2d4ed2a into rust-lang:master Jun 1, 2020
@JOE1994 JOE1994 deleted the clarify_terms branch June 1, 2020 00:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants