From aa0adaa43436eba37bbe3bb6d42c5389b77a83f4 Mon Sep 17 00:00:00 2001 From: Federico Rampazzo Date: Sat, 28 Nov 2020 00:55:50 +0000 Subject: [PATCH] Updated rename-all docs --- sqlx-core/src/from_row.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sqlx-core/src/from_row.rs b/sqlx-core/src/from_row.rs index 2c2ce3a7..08d0be3b 100644 --- a/sqlx-core/src/from_row.rs +++ b/sqlx-core/src/from_row.rs @@ -53,7 +53,7 @@ use crate::row::Row; /// /// ```rust,ignore /// #[derive(sqlx::FromRow)] -/// #[sqlx(rename_all = "camelCase")] +/// #[sqlx(rename_all = "mixedCase")] /// struct UserPost { /// id: i32, /// // remapped to "userId" @@ -63,7 +63,7 @@ use crate::row::Row; /// ``` /// /// The supported values are `snake_case` (available if you have non-snake-case field names for some -/// reason), `lowercase`, `UPPERCASE`, `camelCase`, `SCREAMING_SNAKE_CASE` and `kebab-case`. +/// reason), `lowercase`, `UPPERCASE`, `mixedCase`, `CamelCase`, `SCREAMING_SNAKE_CASE` and `kebab-case`. /// The styling of each option is intended to be an example of its behavior. /// /// #### `default`