mirror of
https://github.com/meilisearch/meilisearch.git
synced 2025-11-22 04:36:32 +00:00
document hide_secret
This commit is contained in:
@@ -351,6 +351,7 @@ impl<T> Settings<T> {
|
||||
}
|
||||
}
|
||||
|
||||
/// Redact a secret string, starting from the `secret_offset`th byte.
|
||||
pub fn hide_secret(secret: &mut String, secret_offset: usize) {
|
||||
match secret.len().checked_sub(secret_offset) {
|
||||
None => (),
|
||||
|
||||
Reference in New Issue
Block a user