diff options
author | Nadrieril | 2019-04-20 22:11:08 +0200 |
---|---|---|
committer | Nadrieril | 2019-04-20 22:11:08 +0200 |
commit | 6bbe7df139552695081af735bd82945e5e22ed05 (patch) | |
tree | 3824894a14656da050d311016fdd6bdceb3a5bb7 /improved_slice_patterns/README.md | |
parent | 9fbc4f6b9a5496c8e41a079484bc9010b25849df (diff) |
improved_slice_patterns now returns ownership on error
Diffstat (limited to 'improved_slice_patterns/README.md')
-rw-r--r-- | improved_slice_patterns/README.md | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/improved_slice_patterns/README.md b/improved_slice_patterns/README.md index ab8fd7e..7f07530 100644 --- a/improved_slice_patterns/README.md +++ b/improved_slice_patterns/README.md @@ -5,6 +5,13 @@ on `Vec`s and iterators using the syntax of [`slice_patterns`][slice_patterns] [slice_patterns]: https://doc.rust-lang.org/nightly/unstable-book/language-features/slice-patterns.html +## Changelog + +### V2.0 + +- `match_vec` now returns a `Result` instead of an `Option`. The `Err` variant +is used to return ownership of the passed vec if there was no match. + ## License Licensed under either of |