From 5a7aa5723371a76185c583b963cd135cee307a59 Mon Sep 17 00:00:00 2001 From: Oladimeji Oreoluwa Date: Sun, 17 May 2026 11:56:33 +0100 Subject: [PATCH] Fix typo in validate_user function docstring changing the comment from recieved to received --- validations.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/validations.py b/validations.py index e26ae64..7989337 100644 --- a/validations.py +++ b/validations.py @@ -2,11 +2,11 @@ def vailidate_user(username, minlen): - """Checks if the recieved username matches the required conditions.""" + """Checks if the received username matches the required conditions.""" if type(username) != str: raise TypeError("username must be a string") if minlen < 1: - raise ValueError("minlen must be at least 1".) + raise ValueError("minlen must be at least 1") if len(username) < minlen: return False