Add missing code examples on slice iter types#77076
Merged
bors merged 1 commit intorust-lang:masterfrom Sep 26, 2020
Merged
Conversation
48296c7 to
187162e
Compare
Member
Author
|
Fixed! |
|
@bors r+ rollup |
Collaborator
|
📌 Commit 187162e has been approved by |
RalfJung
added a commit
to RalfJung/rust
that referenced
this pull request
Sep 26, 2020
…s-slice-iter, r=Dylan-DPC Add missing code examples on slice iter types r? @Dylan-DPC
bors
added a commit
to rust-lang-ci/rust
that referenced
this pull request
Sep 26, 2020
Rollup of 12 pull requests Successful merges: - rust-lang#75454 (Explicitly document the size guarantees that Option makes.) - rust-lang#76631 (Add `x.py setup`) - rust-lang#77076 (Add missing code examples on slice iter types) - rust-lang#77093 (merge `need_type_info_err(_const)`) - rust-lang#77122 (Add `#![feature(const_fn_floating_point_arithmetic)]`) - rust-lang#77127 (Update mdBook) - rust-lang#77161 (Remove TrustedLen requirement from BuilderMethods::switch) - rust-lang#77166 (update Miri) - rust-lang#77181 (Add doc alias for pointer primitive) - rust-lang#77204 (Remove stray word from `ClosureKind::extends` docs) - rust-lang#77207 (Rename `whence` to `span`) - rust-lang#77211 (Remove unused #[allow(...)] statements from compiler/) Failed merges: - rust-lang#77170 (Remove `#[rustc_allow_const_fn_ptr]` and add `#![feature(const_fn_fn_ptr_basics)]`) r? `@ghost`
pickfire
reviewed
Oct 1, 2020
| /// | ||
| /// This struct is created by the [`split`] method on [slices]. | ||
| /// | ||
| /// # Example |
Contributor
There was a problem hiding this comment.
This should be Examples for consistency, not Example.
Member
Author
There was a problem hiding this comment.
Ah true. I might have make the same mistake in some other places...
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
r? @Dylan-DPC