Skip to content

Commit

Permalink
Remove NLL feature
Browse files Browse the repository at this point in the history
And do some refactoring in comments.rs

Closes rust-lang#3107
  • Loading branch information
nrc committed Oct 18, 2018
1 parent 613dfcc commit 4bb84f6
Show file tree
Hide file tree
Showing 8 changed files with 298 additions and 225 deletions.
8 changes: 4 additions & 4 deletions src/chains.rs
Original file line number Diff line number Diff line change
Expand Up @@ -447,7 +447,7 @@ trait ChainFormatter {
// Parent is the first item in the chain, e.g., `foo` in `foo.bar.baz()`.
// Root is the parent plus any other chain items placed on the first line to
// avoid an orphan. E.g.,
// ```
// ```ignore
// foo.bar
// .baz()
// ```
Expand Down Expand Up @@ -509,7 +509,7 @@ impl<'a> ChainFormatterShared<'a> {
// know whether 'overflowing' the last child make a better formatting:
//
// A chain with overflowing the last child:
// ```
// ```ignore
// parent.child1.child2.last_child(
// a,
// b,
Expand All @@ -518,7 +518,7 @@ impl<'a> ChainFormatterShared<'a> {
// ```
//
// A chain without overflowing the last child (in vertical layout):
// ```
// ```ignore
// parent
// .child1
// .child2
Expand All @@ -527,7 +527,7 @@ impl<'a> ChainFormatterShared<'a> {
//
// In particular, overflowing is effective when the last child is a method with a multi-lined
// block-like argument (e.g. closure):
// ```
// ```ignore
// parent.child1.child2.last_child(|a, b, c| {
// let x = foo(a, b, c);
// let y = bar(a, b, c);
Expand Down
Loading

0 comments on commit 4bb84f6

Please sign in to comment.