From d50a3b65c0e37ba16442c63f3d64faea30010843 Mon Sep 17 00:00:00 2001 From: oech3 <79379754+oech3@users.noreply.github.com> Date: Thu, 23 Apr 2026 16:08:30 +0900 Subject: [PATCH] validate.rs: Fix comment Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --- src/shadow-core/src/validate.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/shadow-core/src/validate.rs b/src/shadow-core/src/validate.rs index 0fa93a6..4207ca0 100644 --- a/src/shadow-core/src/validate.rs +++ b/src/shadow-core/src/validate.rs @@ -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())); };