-
Notifications
You must be signed in to change notification settings - Fork 12.7k
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
Fix type name in doc example for Iter and IterMut #80791
Conversation
Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @withoutboats (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. |
library/core/src/slice/iter.rs
Outdated
@@ -51,7 +51,7 @@ fn size_from_ptr<T>(_: *const T) -> usize { | |||
/// Basic usage: | |||
/// | |||
/// ``` | |||
/// // First, we declare a type which has `iter` method to get the `Iter` struct (&[usize here]): | |||
/// // First, we declare a type which has `iter` method to get the `Iter` struct (&[usize] here): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/// // First, we declare a type which has `iter` method to get the `Iter` struct (&[usize] here): | |
/// // First, we declare a type which has `iter` method to get the `Iter` struct (`&[usize]` here): |
library/core/src/slice/iter.rs
Outdated
@@ -112,7 +112,7 @@ impl<'a, T> Iter<'a, T> { | |||
/// | |||
/// ``` | |||
/// // First, we declare a type which has the `iter` method to get the `Iter` | |||
/// // struct (&[usize here]): | |||
/// // struct (&[usize] here): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/// // struct (&[usize] here): | |
/// // struct (`&[usize]` here): |
library/core/src/slice/iter.rs
Outdated
@@ -167,7 +167,7 @@ impl<T> AsRef<[T]> for Iter<'_, T> { | |||
/// | |||
/// ``` | |||
/// // First, we declare a type which has `iter_mut` method to get the `IterMut` | |||
/// // struct (&[usize here]): | |||
/// // struct (&[usize] here): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
... and so on
The job Click to see the possible cause of the failure (guessed by this bot)
|
@bors r+ rollup Thanks! |
📌 Commit 358ef56 has been approved by |
Rollup of 7 pull requests Successful merges: - rust-lang#79675 (Make sure rust-call errors occur correctly for traits) - rust-lang#80372 (Don't panic when an external crate can't be resolved) - rust-lang#80761 (handle generic trait methods in coverage-report tests) - rust-lang#80785 (rustc_ast_pretty: Remove `PrintState::insert_extra_parens`) - rust-lang#80791 (Fix type name in doc example for Iter and IterMut) - rust-lang#80794 (Use Option::map_or instead of `.map(..).unwrap_or(..)`) - rust-lang#80799 (Get rid of custom pretty-printing in rustdoc) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
No description provided.