From 9a846920a85277a27a417bbae0c3c2dd62806662 Mon Sep 17 00:00:00 2001 From: Michael Roth Date: Sun, 13 Oct 2024 13:08:29 +0200 Subject: [PATCH] Fix some comments in the starters and example code (#824) Co-authored-by: Elad Kaplan --- examples/demo/src/models/users.rs | 5 +++-- starters/rest-api/src/models/users.rs | 5 +++-- starters/saas/src/models/users.rs | 5 +++-- 3 files changed, 9 insertions(+), 6 deletions(-) diff --git a/examples/demo/src/models/users.rs b/examples/demo/src/models/users.rs index 40e35678d..bd2e3f2c3 100644 --- a/examples/demo/src/models/users.rs +++ b/examples/demo/src/models/users.rs @@ -112,7 +112,7 @@ impl super::_entities::users::Model { user.ok_or_else(|| ModelError::EntityNotFound) } - /// /// finds a user by the provided reset token + /// finds a user by the provided reset token /// /// # Errors /// @@ -286,7 +286,8 @@ impl super::_entities::users::ActiveModel { /// updates it in the database. /// /// This method hashes the provided password and sets it as the new password - /// for the user. + /// for the user. + /// /// # Errors /// /// when has DB query error or could not hashed the given password diff --git a/starters/rest-api/src/models/users.rs b/starters/rest-api/src/models/users.rs index 4189157e9..b4f3aaea0 100644 --- a/starters/rest-api/src/models/users.rs +++ b/starters/rest-api/src/models/users.rs @@ -111,7 +111,7 @@ impl super::_entities::users::Model { user.ok_or_else(|| ModelError::EntityNotFound) } - /// /// finds a user by the provided reset token + /// finds a user by the provided reset token /// /// # Errors /// @@ -279,7 +279,8 @@ impl super::_entities::users::ActiveModel { /// updates it in the database. /// /// This method hashes the provided password and sets it as the new password - /// for the user. + /// for the user. + /// /// # Errors /// /// when has DB query error or could not hashed the given password diff --git a/starters/saas/src/models/users.rs b/starters/saas/src/models/users.rs index 4189157e9..b4f3aaea0 100644 --- a/starters/saas/src/models/users.rs +++ b/starters/saas/src/models/users.rs @@ -111,7 +111,7 @@ impl super::_entities::users::Model { user.ok_or_else(|| ModelError::EntityNotFound) } - /// /// finds a user by the provided reset token + /// finds a user by the provided reset token /// /// # Errors /// @@ -279,7 +279,8 @@ impl super::_entities::users::ActiveModel { /// updates it in the database. /// /// This method hashes the provided password and sets it as the new password - /// for the user. + /// for the user. + /// /// # Errors /// /// when has DB query error or could not hashed the given password