Skip to content

Commit

Permalink
doctest fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Ali Tariq authored and weiznich committed Aug 23, 2024
1 parent b828950 commit f091f57
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 @@ -807,11 +807,11 @@ define_sql_function! {
/// .get_result::<String>(connection)?;
/// assert!(String::from("[1:2]").eq(&dims));
///
/// let dims = diesel::select(array_dims::<Array<Integer>,_>(vec![None::<i32>,Some(2)]))
/// let dims = diesel::select(array_dims::<Array<Nullable<Integer>>,_>(vec![None::<i32>,Some(2)]))
/// .get_result::<String>(connection)?;
/// assert!(String::from("[1:2]").eq(&dims));
///
/// let dims = diesel::select(array_dims::<Array<Integer>,_>(vec![None::<i32>]))
/// let dims = diesel::select(array_dims::<Array<Nullable<Integer>>,_>(vec![None::<i32>]))
/// .get_result::<String>(connection)?;
/// assert!(String::from("[1:1]").eq(&dims));
/// # Ok(())
Expand Down

0 comments on commit f091f57

Please sign in to comment.