Skip to content

Commit 6b8cb8a

Browse files
committed
chore: update ToSql documentation about [u8; N]
1 parent 9daf8b1 commit 6b8cb8a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

postgres-types/src/lib.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -754,7 +754,7 @@ pub enum IsNull {
754754
/// | `f64` | DOUBLE PRECISION |
755755
/// | `&str`/`String` | VARCHAR, CHAR(n), TEXT, CITEXT, NAME |
756756
/// | | LTREE, LQUERY, LTXTQUERY |
757-
/// | `&[u8]`/`Vec<u8>` | BYTEA |
757+
/// | `&[u8]`/`Vec<u8>`/`[u8; N]` | BYTEA |
758758
/// | `HashMap<String, Option<String>>` | HSTORE |
759759
/// | `SystemTime` | TIMESTAMP, TIMESTAMP WITH TIME ZONE |
760760
/// | `IpAddr` | INET |
@@ -794,9 +794,9 @@ pub enum IsNull {
794794
///
795795
/// # Arrays
796796
///
797-
/// `ToSql` is implemented for `Vec<T>`, `&[T]`, `Box<[T]>` and `[T; N]` where
798-
/// `T` implements `ToSql`, and corresponds to one-dimensional Postgres arrays
799-
/// with an index offset of 1.
797+
/// `ToSql` is implemented for `[u8; N]`, `Vec<T>`, `&[T]`, `Box<[T]>` and `[T; N]`
798+
/// where `T` implements `ToSql` and `N` is const usize, and corresponds to one-dimensional
799+
/// Postgres arrays with an index offset of 1.
800800
///
801801
/// **Note:** the impl for arrays only exist when the Cargo feature `array-impls`
802802
/// is enabled.

0 commit comments

Comments
 (0)