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

Update documentation for indexing/slicing methods #42236

Merged
merged 1 commit into from
May 26, 2017

Conversation

citizen428
Copy link
Contributor

@rust-highfive
Copy link
Collaborator

Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @steveklabnik (or someone else) soon.

If any changes to this PR are deemed necessary, please add them as extra commits. This ensures that the reviewer can see what has changed since they last reviewed the code. Due to the way GitHub handles out-of-date commits, this should also make it reasonably obvious what issues have or haven't been addressed. Large or tricky changes may require several passes of review and changes.

Please see the contribution instructions for more information.

@@ -435,7 +441,6 @@ impl<T> [T] {
}

/// Returns a raw pointer to the slice's buffer.
///
Copy link
Member

Choose a reason for hiding this comment

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

Why this removal?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sausage fingers...

@@ -433,7 +433,11 @@ impl str {
}

/// Creates a string slice from another string slice, bypassing safety
/// checks.
/// checks. This is generally not recommended, use with caution!
Copy link
Member

Choose a reason for hiding this comment

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

Please add an empty line before the new sentence.

@@ -476,7 +480,11 @@ impl str {
}

/// Creates a string slice from another string slice, bypassing safety
/// checks.
/// checks. This is generally not recommended, use with caution!
Copy link
Member

Choose a reason for hiding this comment

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

Please add an empty line before the new sentence.

@@ -393,7 +393,10 @@ impl<T> [T] {
}

/// Returns a reference to an element or subslice, without doing bounds
/// checking. So use it very carefully!
/// checking. This is generally not recommended, use with caution! For
Copy link
Member

Choose a reason for hiding this comment

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

Please add an empty line before the new sentence.

@@ -413,7 +416,10 @@ impl<T> [T] {
}

/// Returns a mutable reference to an element or subslice, without doing
/// bounds checking. So use it very carefully!
/// bounds checking. This is generally not recommended, use with caution!
Copy link
Member

Choose a reason for hiding this comment

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

Please add an empty line before the new sentence.

@GuillaumeGomez
Copy link
Member

All good, just a few nits.

@citizen428 citizen428 force-pushed the docs/unchecked-indexing-slicing branch from 3d5ea15 to a6d455d Compare May 26, 2017 08:48
@citizen428
Copy link
Contributor Author

@GuillaumeGomez Thanks for the feedback, just updated the PR.

@citizen428 citizen428 force-pushed the docs/unchecked-indexing-slicing branch from a6d455d to bbf1dc4 Compare May 26, 2017 08:49
@GuillaumeGomez
Copy link
Member

Thanks!

@bors: r+ rollup

@bors
Copy link
Contributor

bors commented May 26, 2017

📌 Commit bbf1dc4 has been approved by GuillaumeGomez

frewsxcv added a commit to frewsxcv/rust that referenced this pull request May 26, 2017
…slicing, r=GuillaumeGomez

Update documentation for indexing/slicing methods

See rust-lang#39911

r? @steveklabnik
frewsxcv added a commit to frewsxcv/rust that referenced this pull request May 26, 2017
…slicing, r=GuillaumeGomez

Update documentation for indexing/slicing methods

See rust-lang#39911

r? @steveklabnik
bors added a commit that referenced this pull request May 26, 2017
Rollup of 7 pull requests

- Successful merges: #42169, #42215, #42216, #42224, #42230, #42236, #42241
- Failed merges:
@bors bors merged commit bbf1dc4 into rust-lang:master May 26, 2017
@bors
Copy link
Contributor

bors commented May 26, 2017

☔ The latest upstream changes (presumably #42245) made this pull request unmergeable. Please resolve the merge conflicts.

@citizen428 citizen428 deleted the docs/unchecked-indexing-slicing branch June 5, 2017 13:29
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.

5 participants