diff --git a/diesel/src/pg/expression/expression_methods.rs b/diesel/src/pg/expression/expression_methods.rs index 32e997f160f2..f23ad3c98737 100644 --- a/diesel/src/pg/expression/expression_methods.rs +++ b/diesel/src/pg/expression/expression_methods.rs @@ -874,6 +874,8 @@ pub trait PgRangeExpressionMethods: Expression + Sized { /// .filter(age.contains(20)) /// .load::(conn)?; /// assert!(amazing_posts.is_empty()); + /// + /// diesel::select((1..5).contains(4)).load::(conn).unwrap(); /// # Ok(()) /// # } /// ```