diff --git a/diesel/src/pg/expression/functions.rs b/diesel/src/pg/expression/functions.rs index aa3a57f3e8a6..5eb92d4046f8 100644 --- a/diesel/src/pg/expression/functions.rs +++ b/diesel/src/pg/expression/functions.rs @@ -1519,17 +1519,17 @@ define_sql_function! { /// # fn run_test() -> QueryResult<()> { /// # use diesel::dsl::to_jsonb; /// # use serde_json::{json, Value}; - /// # use diesel::sql_types::{Integer, Array, Json, Jsonb, Text, Nullable}; + /// # use diesel::sql_types::{Integer, Array, Jsonb, Text, Nullable}; /// # let connection = &mut establish_connection(); /// let result = diesel::select(to_jsonb::(1)) /// .get_result::(connection)?; /// /// assert_eq!(json!(1), result); /// - /// let result = diesel::select(to_jsonb::, _>(vec!["abc", "xyz"])) + /// let result = diesel::select(to_jsonb::, _>(vec!["abc", "def"])) /// .get_result::(connection)?; /// - /// assert_eq!(json!(["abc", "xyz"]), result); + /// assert_eq!(json!(["abc", "def"]), result); /// /// let result = diesel::select(to_jsonb::>, _>(Vec::::new())) /// .get_result::(connection)?;