Skip to content

Commit

Permalink
fixed doc test
Browse files Browse the repository at this point in the history
  • Loading branch information
Ali Tariq authored and Ali Tariq committed Aug 22, 2024
1 parent d580610 commit bf30144
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions diesel/src/pg/expression/functions.rs
Original file line number Diff line number Diff line change
Expand Up @@ -767,11 +767,11 @@ define_sql_function! {
/// # let connection = &mut establish_connection();
///
/// let dims = diesel::select(array_dims::<Array<_>,_>(vec![1,2]))
/// .get_result::<String>(connection);
/// .get_result::<String>(connection).unwrap();
/// assert!(String::from("[1:2]").eq(&dims));
///
/// let dims = diesel::select(array_dims::<Array<_>,_>(vec![vec![1,2,3],vec![4,5,6]]))
/// .get_result::<String>(connection);
/// .get_result::<String>(connection).unwrap();
/// assert!(String::from("[1:2][1:3]").eq(&dims));
///
/// # Ok(())
Expand Down

0 comments on commit bf30144

Please sign in to comment.