chore (backend-rs): fix doc link

This commit is contained in:
naskya 2024-06-06 17:10:40 +09:00
parent 308ecec341
commit b6c16b4e29
No known key found for this signature in database
GPG key ID: 712D413B3A9FED5C

View file

@ -6,7 +6,7 @@ use argon2::{
Argon2, Argon2,
}; };
/// Hashes the given password using [Argon2] algorithm. /// Hashes the given password using [argon2] algorithm.
#[crate::export] #[crate::export]
pub fn hash_password(password: &str) -> Result<String, password_hash::errors::Error> { pub fn hash_password(password: &str) -> Result<String, password_hash::errors::Error> {
let salt = SaltString::generate(&mut OsRng); let salt = SaltString::generate(&mut OsRng);