validate.rs: Fix comment

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
oech3
2026-04-23 16:08:30 +09:00
committed by GitHub
parent 224ddcb4b1
commit d50a3b65c0
+1 -1
View File
@@ -39,7 +39,7 @@ pub fn validate_username(name: &str) -> Result<(), ShadowError> {
}
let mut chars = name.chars();
// Name is guaranteed non-empty by the check above.
// Reject empty names by requiring a first character here.
let Some(first) = chars.next() else {
return Err(ShadowError::Validation("username must not be empty".into()));
};