Skip to content

Commit

Permalink
Fix the doc tests
Browse files Browse the repository at this point in the history
  • Loading branch information
weiznich committed Aug 30, 2024
1 parent f2d4e25 commit 614df9b
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions diesel/src/pg/expression/functions.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1380,15 +1380,11 @@ define_sql_function! {
/// # use diesel::sql_types::{Nullable, Array, Integer};
/// # let connection = &mut establish_connection();
///
/// let dims = diesel::select(array_ndims::<Array<_>, _>(vec![1, 2]))
/// // diesel currently only supports 1D arrays
/// let dims = diesel::select(array_ndims::<Array<Integer>, _>(vec![1, 2]))
/// .get_result::<i32>(connection)?;
/// assert_eq!(1, dims);
///
/// let dims = diesel::select(array_ndims::<Array<_>, _>(vec![vec![1, 2], vec![3, 4]]))
/// .get_result::<i32>(connection)?;
/// assert_eq!(2, dims);
///
///
/// # Ok(())
/// # }
/// ```
Expand Down

0 comments on commit 614df9b

Please sign in to comment.