Add missing fmt structs examples#58538
Merged
bors merged 1 commit intorust-lang:masterfrom Feb 20, 2019
Merged
Conversation
fbstj
reviewed
Feb 17, 2019
ollie27
reviewed
Feb 17, 2019
9b0f70f to
c01656d
Compare
Centril
reviewed
Feb 18, 2019
src/libcore/fmt/builders.rs
Outdated
Contributor
There was a problem hiding this comment.
Suggested change
| /// fn fmt(&self, fmt: &mut fmt::Formatter) -> fmt::Result { | |
| /// fn fmt(&self, fmt: &mut fmt::Formatter<'_>) -> fmt::Result { |
src/libcore/fmt/builders.rs
Outdated
Contributor
There was a problem hiding this comment.
Suggested change
| /// .finish() // You need to call it in order to "finish" the | |
| /// .finish() // You need to call it to "finish" the |
src/libcore/fmt/builders.rs
Outdated
Contributor
There was a problem hiding this comment.
Suggested change
| /// fn fmt(&self, fmt: &mut fmt::Formatter) -> fmt::Result { | |
| /// fn fmt(&self, fmt: &mut fmt::Formatter<'_>) -> fmt::Result { |
src/libcore/fmt/builders.rs
Outdated
Contributor
There was a problem hiding this comment.
Suggested change
| /// fn fmt(&self, fmt: &mut fmt::Formatter) -> fmt::Result { | |
| /// fn fmt(&self, fmt: &mut fmt::Formatter<'_>) -> fmt::Result { |
src/libcore/fmt/builders.rs
Outdated
Contributor
There was a problem hiding this comment.
Suggested change
| /// fn fmt(&self, fmt: &mut fmt::Formatter) -> fmt::Result { | |
| /// fn fmt(&self, fmt: &mut fmt::Formatter<'_>) -> fmt::Result { |
src/libcore/fmt/builders.rs
Outdated
Contributor
There was a problem hiding this comment.
Suggested change
| /// fn fmt(&self, fmt: &mut fmt::Formatter) -> fmt::Result { | |
| /// fn fmt(&self, fmt: &mut fmt::Formatter<'_>) -> fmt::Result { |
src/libcore/fmt/builders.rs
Outdated
Contributor
There was a problem hiding this comment.
Suggested change
| /// fn fmt(&self, fmt: &mut fmt::Formatter) -> fmt::Result { | |
| /// fn fmt(&self, fmt: &mut fmt::Formatter<'_>) -> fmt::Result { |
src/libcore/fmt/builders.rs
Outdated
Contributor
There was a problem hiding this comment.
Suggested change
| /// fn fmt(&self, fmt: &mut fmt::Formatter) -> fmt::Result { | |
| /// fn fmt(&self, fmt: &mut fmt::Formatter<'_>) -> fmt::Result { |
src/libcore/fmt/builders.rs
Outdated
Contributor
There was a problem hiding this comment.
Suggested change
| /// fn fmt(&self, fmt: &mut fmt::Formatter) -> fmt::Result { | |
| /// fn fmt(&self, fmt: &mut fmt::Formatter<'_>) -> fmt::Result { |
src/libcore/fmt/builders.rs
Outdated
Contributor
There was a problem hiding this comment.
Suggested change
| /// .entry(&"whole", &self.0) // We add the "whole" entry | |
| /// .entry(&"whole", &self.0) // We add the "whole" entry. |
Contributor
|
r? @Centril r=me with nits addressed. |
c01656d to
31ee20d
Compare
Member
Author
|
@bors: r=Centril rollup |
Collaborator
|
📌 Commit 31ee20d has been approved by |
kennytm
added a commit
to kennytm/rust
that referenced
this pull request
Feb 20, 2019
Add missing fmt structs examples r? @rust-lang/docs
bors
added a commit
that referenced
this pull request
Feb 20, 2019
Rollup of 24 pull requests Successful merges: - #56470 (Modify doctest's auto-`fn main()` to allow `Result`s) - #58044 (Make overflowing and wrapping negation const) - #58303 (Improve stability tags display) - #58336 (Fix search results interactions) - #58384 (Fix tables display) - #58392 (Use less explicit shifting in std::net::ip) - #58409 (rustdoc: respect alternate flag when formatting impl trait) - #58456 (Remove no longer accurate diagnostic code about NLL) - #58528 (Don't use an allocation for ItemId in StmtKind) - #58530 (Monomorphize less code in fs::{read|write}) - #58534 (Mention capping forbid lints) - #58536 (Remove UB in pointer tests) - #58538 (Add missing fmt structs examples) - #58539 (Add alias methods to PathBuf for underlying OsString (#58234)) - #58544 (Fix doc for rustc "-g" flag) - #58545 (Add regression test for a specialization-related ICE (#39448)) - #58546 (librustc_codegen_llvm => 2018) - #58551 (Explain a panic in test case net::tcp::tests::double_bind) - #58553 (Use more impl header lifetime elision) - #58562 (Fix style nits) - #58565 (Fix typo in std::future::Future docs) - #58568 (Fix a transposition in driver.rs.) - #58569 (Reduce Some Code Repetitions like `(n << amt) >> amt`) - #58576 (Stabilize iter::successors and iter::from_fn)
bors
added a commit
that referenced
this pull request
Feb 20, 2019
Rollup of 24 pull requests Successful merges: - #56470 (Modify doctest's auto-`fn main()` to allow `Result`s) - #58044 (Make overflowing and wrapping negation const) - #58303 (Improve stability tags display) - #58336 (Fix search results interactions) - #58384 (Fix tables display) - #58392 (Use less explicit shifting in std::net::ip) - #58409 (rustdoc: respect alternate flag when formatting impl trait) - #58456 (Remove no longer accurate diagnostic code about NLL) - #58528 (Don't use an allocation for ItemId in StmtKind) - #58530 (Monomorphize less code in fs::{read|write}) - #58534 (Mention capping forbid lints) - #58536 (Remove UB in pointer tests) - #58538 (Add missing fmt structs examples) - #58539 (Add alias methods to PathBuf for underlying OsString (#58234)) - #58544 (Fix doc for rustc "-g" flag) - #58545 (Add regression test for a specialization-related ICE (#39448)) - #58546 (librustc_codegen_llvm => 2018) - #58551 (Explain a panic in test case net::tcp::tests::double_bind) - #58553 (Use more impl header lifetime elision) - #58562 (Fix style nits) - #58565 (Fix typo in std::future::Future docs) - #58568 (Fix a transposition in driver.rs.) - #58569 (Reduce Some Code Repetitions like `(n << amt) >> amt`) - #58576 (Stabilize iter::successors and iter::from_fn)
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? @rust-lang/docs