Skip to content

Commit 49b926e

Browse files
committed
update README
1 parent f23bcad commit 49b926e

File tree

1 file changed

+1
-12
lines changed

1 file changed

+1
-12
lines changed

README.md

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -497,7 +497,7 @@ fn example_18() -> Result<(), Error<Vec<i32>>> {
497497
}
498498
```
499499

500-
# `Skip`
500+
## `Skip`
501501

502502
`Skip` is a rule that applies a specific rule to the elements of the Iterator while skipping the elements according
503503
to `SkipOption`.
@@ -540,17 +540,6 @@ impl<ITEM> SkipOption for NoSkip<ITEM> {
540540
}
541541
```
542542

543-
### `NonEmptyVec` to `NonEmptyVecDeque` using `collect()`
544-
545-
```rust
546-
fn example_22() -> anyhow::Result<()> {
547-
let ne_vec = NonEmptyVec::new(vec![1, 2, 3])?;
548-
let ne_vec_deque: NonEmptyVecDeque<i32> = ne_vec.into_iter().collect();
549-
assert_eq!(ne_vec_deque.into_value(), vec![1, 2, 3]);
550-
Ok(())
551-
}
552-
```
553-
554543
# Length
555544

556545
You can impose constraints on objects that have a length, such as `String` or `Vec`.

0 commit comments

Comments
 (0)