From 8ff0cff9bd5214d77a26dd001fb5ec6b1ee63207 Mon Sep 17 00:00:00 2001 From: GrayJack Date: Sun, 6 Sep 2020 00:19:12 -0300 Subject: [PATCH] Bump version --- CHANGELOG.md | 2 +- Cargo.toml | 2 +- src/comprehension.rs | 4 +--- 3 files changed, 3 insertions(+), 5 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 7ee5cc5..f42b0e0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,6 @@ # Changes -## Unreleased ~ master ~ 2.0-dev +## 2.0.0 - Change behaviour of the `cow!` macro - Add `rwlock!` macro to create `RwLock` types - Remove haskell-like and python-like comprehension syntax diff --git a/Cargo.toml b/Cargo.toml index dcac818..bdf7be7 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "sugars" -version = "1.2.0" +version = "2.0.0" authors = ["GrayJack "] readme = "README.md" license-file = "LICENSE" diff --git a/src/comprehension.rs b/src/comprehension.rs index 0d12083..1760fe4 100644 --- a/src/comprehension.rs +++ b/src/comprehension.rs @@ -8,13 +8,11 @@ /// * Only 3 nested comprehensions /// /// # Examples: -/// ```rust,ignore +/// ```rust /// # use std::collections::*; /// use sugars::c; -/// # fn main() { /// let w: Vec<_> = c![x; x in 1..10].collect(); /// let z: HashSet<_> = c!{x; x in 1..10, if x%2 == 0}.collect(); -/// # } /// ``` #[macro_export] macro_rules! c {