commit 700e7e04002afb058f5bd51c4c569ce97f434a10 parent 81af424e52bab8230621e47c360f9ca1061bdd9a Author: Jackson G. Kaindume <seestem@merely.tech> Date: Sun, 21 Aug 2022 14:31:25 +0200 fix comment Diffstat:
M | src/validate.rs | | | 4 | ++-- |
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/validate.rs b/src/validate.rs @@ -28,12 +28,12 @@ impl Validate { return false; } } else { - // Count underscores because username can have only one [ _ ] underscore + // Count underscores because username can have only one (_) underscore underscore_count += 1; } } - // Username can have only one [ _ ] underscore + // Username can have only one (_) underscore if underscore_count > 1 { return false; }