From 548ee49fef19d976911d2ee529092ad36f3220a0 Mon Sep 17 00:00:00 2001 From: eslopfer Date: Mon, 21 Nov 2022 08:27:17 +0000 Subject: [PATCH] docs(check-user-name): fix typo --- subjects/check-user-name/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/subjects/check-user-name/README.md b/subjects/check-user-name/README.md index 25aa3280..85a5d496 100644 --- a/subjects/check-user-name/README.md +++ b/subjects/check-user-name/README.md @@ -15,7 +15,7 @@ You will also have to create a `User` struct which has: - `acessLevel`: `enum` - Associated functions: - `new`: which initializes the struct. - - `send_name`: which takes only `self` as argument and returns an `Option<&str>` with `None` if the user is a `guest` or the `name` if the `AccessLevel` has any of the other options. + - `send_name`: which takes only `self` as argument and returns an `Option<&str>` with `None` if the user is a `Guest` or the `name` if the `AccessLevel` has any of the other options. - Other functions: - `check_user_name`: which takes a `User`, calls `send_name` and returns a `tuple` with `true` and the user `name` if `send_name` returns the name or `false` and `"Error: User is guest"` if not.