diff options
author | Nadrieril | 2019-04-14 23:14:45 +0200 |
---|---|---|
committer | Nadrieril | 2019-04-14 23:14:45 +0200 |
commit | 74e59290247a7201c17dd748b7f554716ad16691 (patch) | |
tree | 767a9b16619a8e0428e57f66d497d44149503141 /improved_slice_patterns/src | |
parent | e5bc3586fc83768a72260fa800bf86be827b9519 (diff) |
improved_slice_patterns: prepare for publishing
Diffstat (limited to 'improved_slice_patterns/src')
-rw-r--r-- | improved_slice_patterns/src/lib.rs | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/improved_slice_patterns/src/lib.rs b/improved_slice_patterns/src/lib.rs index 56547f9..3fdd9c9 100644 --- a/improved_slice_patterns/src/lib.rs +++ b/improved_slice_patterns/src/lib.rs @@ -1,7 +1,8 @@ #![feature(slice_patterns)] //! A tiny crate that provides two macros to help matching -//! on `Vec`s and iterators using [`slice_patterns`][slice_patterns] +//! 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 @@ -14,7 +15,7 @@ /// pattern, unless the iterator is double-ended. /// /// Example: -/// ``` +/// ```edition2018 /// use improved_slice_patterns::destructure_iter; /// /// let vec = vec![Some(1), Some(2), Some(3), None]; @@ -128,7 +129,7 @@ macro_rules! destructure_iter { /// A variable length pattern (`x..`) returns an iterator. /// /// Example: -/// ``` +/// ```edition2018 /// #![feature(slice_patterns)] /// use improved_slice_patterns::match_vec; /// |