summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthias Beyer <mail@beyermatthias.de>2017-10-03 10:17:01 +0200
committerMatthias Beyer <mail@beyermatthias.de>2017-10-03 10:17:01 +0200
commitf80413b5a481badd19a5ccd09f1d071498228781 (patch)
treeee99d08b39a69bfcbc759f47bfcd9e9736901ef1
parent51c6b1e6a365112865dd579fd604d18d97d32c55 (diff)
Fix typo
-rw-r--r--src/failable/filter.rs102
1 files changed, 51 insertions, 51 deletions
diff --git a/src/failable/filter.rs b/src/failable/filter.rs
index a940cf5..de49512 100644
--- a/src/failable/filter.rs
+++ b/src/failable/filter.rs
@@ -36,21 +36,21 @@ pub trait FailableFilter<N, E: Error> {
///
/// ```
/// # #[derive(Debug)]
- /// # struct ErrorStup { }
+ /// # struct ErrorStub { }
/// #
- /// # impl ::std::fmt::Display for ErrorStup {
+ /// # impl ::std::fmt::Display for ErrorStub {
/// # fn fmt(&self, f: &mut ::std::fmt::Formatter) -> Result<(), ::std::fmt::Error> {
/// # Ok(())
/// # }
/// # }
/// #
- /// # impl ::std::error::Error for ErrorStup {
+ /// # impl ::std::error::Error for ErrorStub {
/// # fn description(&self) -> &str { "stub" }
/// # }
/// #
/// use filters::failable::filter::FailableFilter;
///
- /// let f = (|&a: &usize| -> Result<bool, ErrorStup> { Ok(a == 1) }).not();
+ /// let f = (|&a: &usize| -> Result<bool, ErrorStub> { Ok(a == 1) }).not();
///
/// assert!(f.filter(&2).unwrap());
/// ```
@@ -64,22 +64,22 @@ pub trait FailableFilter<N, E: Error> {
///
/// ```
/// # #[derive(Debug)]
- /// # struct ErrorStup { }
+ /// # struct ErrorStub { }
/// #
- /// # impl ::std::fmt::Display for ErrorStup {
+ /// # impl ::std::fmt::Display for ErrorStub {
/// # fn fmt(&self, f: &mut ::std::fmt::Formatter) -> Result<(), ::std::fmt::Error> {
/// # Ok(())
/// # }
/// # }
/// #
- /// # impl ::std::error::Error for ErrorStup {
+ /// # impl ::std::error::Error for ErrorStub {
/// # fn description(&self) -> &str { "stub" }
/// # }
/// #
/// use filters::failable::filter::FailableFilter;
///
- /// let a = (|&a: &usize| -> Result<bool, ErrorStup> { Ok(a == 1) });
- /// let b = (|&a: &usize| -> Result<bool, ErrorStup> { Ok(a == 2) });
+ /// let a = (|&a: &usize| -> Result<bool, ErrorStub> { Ok(a == 1) });
+ /// let b = (|&a: &usize| -> Result<bool, ErrorStub> { Ok(a == 2) });
/// let c = a.or(b);
///
/// assert!(c.filter(&1).unwrap());
@@ -97,22 +97,22 @@ pub trait FailableFilter<N, E: Error> {
///
/// ```
/// # #[derive(Debug)]
- /// # struct ErrorStup { }
+ /// # struct ErrorStub { }
/// #
- /// # impl ::std::fmt::Display for ErrorStup {
+ /// # impl ::std::fmt::Display for ErrorStub {
/// # fn fmt(&self, f: &mut ::std::fmt::Formatter) -> Result<(), ::std::fmt::Error> {
/// # Ok(())
/// # }
/// # }
/// #
- /// # impl ::std::error::Error for ErrorStup {
+ /// # impl ::std::error::Error for ErrorStub {
/// # fn description(&self) -> &str { "stub" }
/// # }
/// #
/// use filters::failable::filter::FailableFilter;
///
- /// let a = (|&a: &usize| -> Result<bool, ErrorStup> { Ok(a == 1) });
- /// let b = (|&a: &usize| -> Result<bool, ErrorStup> { Ok(a == 2) });
+ /// let a = (|&a: &usize| -> Result<bool, ErrorStub> { Ok(a == 1) });
+ /// let b = (|&a: &usize| -> Result<bool, ErrorStub> { Ok(a == 2) });
/// let c = a.or_not(b);
///
/// assert!(c.filter(&1).unwrap());
@@ -130,23 +130,23 @@ pub trait FailableFilter<N, E: Error> {
///
/// ```
/// # #[derive(Debug)]
- /// # struct ErrorStup { }
+ /// # struct ErrorStub { }
/// #
- /// # impl ::std::fmt::Display for ErrorStup {
+ /// # impl ::std::fmt::Display for ErrorStub {
/// # fn fmt(&self, f: &mut ::std::fmt::Formatter) -> Result<(), ::std::fmt::Error> {
/// # Ok(())
/// # }
/// # }
/// #
- /// # impl ::std::error::Error for ErrorStup {
+ /// # impl ::std::error::Error for ErrorStub {
/// # fn description(&self) -> &str { "stub" }
/// # }
/// #
/// use filters::failable::filter::FailableFilter;
///
- /// let a = (|&a: &usize| -> Result<bool, ErrorStup> { Ok(a == 1) });
- /// let b = (|&a: &usize| -> Result<bool, ErrorStup> { Ok(a == 2) });
- /// let c = (|&a: &usize| -> Result<bool, ErrorStup> { Ok(a == 3) });
+ /// let a = (|&a: &usize| -> Result<bool, ErrorStub> { Ok(a == 1) });
+ /// let b = (|&a: &usize| -> Result<bool, ErrorStub> { Ok(a == 2) });
+ /// let c = (|&a: &usize| -> Result<bool, ErrorStub> { Ok(a == 3) });
/// let d = a.or3(b, c);
///
/// assert!(d.filter(&1).unwrap());
@@ -166,22 +166,22 @@ pub trait FailableFilter<N, E: Error> {
///
/// ```
/// # #[derive(Debug)]
- /// # struct ErrorStup { }
+ /// # struct ErrorStub { }
/// #
- /// # impl ::std::fmt::Display for ErrorStup {
+ /// # impl ::std::fmt::Display for ErrorStub {
/// # fn fmt(&self, f: &mut ::std::fmt::Formatter) -> Result<(), ::std::fmt::Error> {
/// # Ok(())
/// # }
/// # }
/// #
- /// # impl ::std::error::Error for ErrorStup {
+ /// # impl ::std::error::Error for ErrorStub {
/// # fn description(&self) -> &str { "stub" }
/// # }
/// #
/// use filters::failable::filter::FailableFilter;
///
- /// let a = (|&a: &usize| -> Result<bool, ErrorStup> { Ok(a == 1) });
- /// let b = (|&a: &usize| -> Result<bool, ErrorStup> { Ok(a == 2) });
+ /// let a = (|&a: &usize| -> Result<bool, ErrorStub> { Ok(a == 1) });
+ /// let b = (|&a: &usize| -> Result<bool, ErrorStub> { Ok(a == 2) });
/// let c = a.nor(b); /* !(a == 1 || a == 2) */
///
/// assert!(!c.filter(&1).unwrap());
@@ -199,22 +199,22 @@ pub trait FailableFilter<N, E: Error> {
///
/// ```
/// # #[derive(Debug)]
- /// # struct ErrorStup { }
+ /// # struct ErrorStub { }
/// #
- /// # impl ::std::fmt::Display for ErrorStup {
+ /// # impl ::std::fmt::Display for ErrorStub {
/// # fn fmt(&self, f: &mut ::std::fmt::Formatter) -> Result<(), ::std::fmt::Error> {
/// # Ok(())
/// # }
/// # }
/// #
- /// # impl ::std::error::Error for ErrorStup {
+ /// # impl ::std::error::Error for ErrorStub {
/// # fn description(&self) -> &str { "stub" }
/// # }
/// #
/// use filters::failable::filter::FailableFilter;
///
- /// let a = (|&a: &usize| -> Result<bool, ErrorStup> { Ok(a > 3) });
- /// let b = (|&a: &usize| -> Result<bool, ErrorStup> { Ok(a < 7) });
+ /// let a = (|&a: &usize| -> Result<bool, ErrorStub> { Ok(a > 3) });
+ /// let b = (|&a: &usize| -> Result<bool, ErrorStub> { Ok(a < 7) });
/// let c = a.xor(b);
///
/// assert!(c.filter(&1).unwrap());
@@ -233,22 +233,22 @@ pub trait FailableFilter<N, E: Error> {
///
/// ```
/// # #[derive(Debug)]
- /// # struct ErrorStup { }
+ /// # struct ErrorStub { }
/// #
- /// # impl ::std::fmt::Display for ErrorStup {
+ /// # impl ::std::fmt::Display for ErrorStub {
/// # fn fmt(&self, f: &mut ::std::fmt::Formatter) -> Result<(), ::std::fmt::Error> {
/// # Ok(())
/// # }
/// # }
/// #
- /// # impl ::std::error::Error for ErrorStup {
+ /// # impl ::std::error::Error for ErrorStub {
/// # fn description(&self) -> &str { "stub" }
/// # }
/// #
/// use filters::failable::filter::FailableFilter;
///
- /// let a = (|&a: &usize| -> Result<bool, ErrorStup> { Ok(a > 1) });
- /// let b = (|&a: &usize| -> Result<bool, ErrorStup> { Ok(a < 7) });
+ /// let a = (|&a: &usize| -> Result<bool, ErrorStub> { Ok(a > 1) });
+ /// let b = (|&a: &usize| -> Result<bool, ErrorStub> { Ok(a < 7) });
/// let c = a.and(b);
///
/// assert!(!c.filter(&1).unwrap());
@@ -268,23 +268,23 @@ pub trait FailableFilter<N, E: Error> {
///
/// ```
/// # #[derive(Debug)]
- /// # struct ErrorStup { }
+ /// # struct ErrorStub { }
/// #
- /// # impl ::std::fmt::Display for ErrorStup {
+ /// # impl ::std::fmt::Display for ErrorStub {
/// # fn fmt(&self, f: &mut ::std::fmt::Formatter) -> Result<(), ::std::fmt::Error> {
/// # Ok(())
/// # }
/// # }
/// #
- /// # impl ::std::error::Error for ErrorStup {
+ /// # impl ::std::error::Error for ErrorStub {
/// # fn description(&self) -> &str { "stub" }
/// # }
/// #
/// use filters::failable::filter::FailableFilter;
///
- /// let a = (|&a: &usize| -> Result<bool, ErrorStup> { Ok(a > 1) });
- /// let b = (|&a: &usize| -> Result<bool, ErrorStup> { Ok(a < 20) });
- /// let c = (|&a: &usize| -> Result<bool, ErrorStup> { Ok(a % 2 == 0) });
+ /// let a = (|&a: &usize| -> Result<bool, ErrorStub> { Ok(a > 1) });
+ /// let b = (|&a: &usize| -> Result<bool, ErrorStub> { Ok(a < 20) });
+ /// let c = (|&a: &usize| -> Result<bool, ErrorStub> { Ok(a % 2 == 0) });
/// let d = a.and3(b, c);
///
/// assert!(!d.filter(&1).unwrap());
@@ -307,22 +307,22 @@ pub trait FailableFilter<N, E: Error> {
///
/// ```
/// # #[derive(Debug)]
- /// # struct ErrorStup { }
+ /// # struct ErrorStub { }
/// #
- /// # impl ::std::fmt::Display for ErrorStup {
+ /// # impl ::std::fmt::Display for ErrorStub {
/// # fn fmt(&self, f: &mut ::std::fmt::Formatter) -> Result<(), ::std::fmt::Error> {
/// # Ok(())
/// # }
/// # }
/// #
- /// # impl ::std::error::Error for ErrorStup {
+ /// # impl ::std::error::Error for ErrorStub {
/// # fn description(&self) -> &str { "stub" }
/// # }
/// #
/// use filters::failable::filter::FailableFilter;
///
- /// let a = (|&a: &usize| -> Result<bool, ErrorStup> { Ok(a > 10) });
- /// let b = (|&a: &usize| -> Result<bool, ErrorStup> { Ok(a < 20) });
+ /// let a = (|&a: &usize| -> Result<bool, ErrorStub> { Ok(a > 10) });
+ /// let b = (|&a: &usize| -> Result<bool, ErrorStub> { Ok(a < 20) });
/// let c = a.and_not(b);
///
/// assert!(!c.filter(&1).unwrap());
@@ -344,22 +344,22 @@ pub trait FailableFilter<N, E: Error> {
///
/// ```
/// # #[derive(Debug)]
- /// # struct ErrorStup { }
+ /// # struct ErrorStub { }
/// #
- /// # impl ::std::fmt::Display for ErrorStup {
+ /// # impl ::std::fmt::Display for ErrorStub {
/// # fn fmt(&self, f: &mut ::std::fmt::Formatter) -> Result<(), ::std::fmt::Error> {
/// # Ok(())
/// # }
/// # }
/// #
- /// # impl ::std::error::Error for ErrorStup {
+ /// # impl ::std::error::Error for ErrorStub {
/// # fn description(&self) -> &str { "stub" }
/// # }
/// #
/// use filters::failable::filter::FailableFilter;
///
- /// let a = (|&a: &usize| -> Result<bool, ErrorStup> { Ok(a > 10) });
- /// let b = (|&a: &usize| -> Result<bool, ErrorStup> { Ok(a < 20) });
+ /// let a = (|&a: &usize| -> Result<bool, ErrorStub> { Ok(a > 10) });
+ /// let b = (|&a: &usize| -> Result<bool, ErrorStub> { Ok(a < 20) });
/// let c = a.nand(b);
///
/// assert!(c.filter(&1).unwrap());