Skip to content

Commit 00b9342

Browse files
sadiquipedrodesu
andauthored
fix(rust-piscine): fix checkpoint subjects (#3024)
* fix(rust-piscine): fix checkpoint subjects * revert get_document_id state --------- Co-authored-by: Pedro Ferreira <me.pedro.ferreira@gmail.com>
1 parent 53cb846 commit 00b9342

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

subjects/check_user_name/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,12 @@ You will also have to create a `User` struct which has:
1212

1313
- Fields:
1414
- `name`: `String`
15-
- `acessLevel`: `enum`
15+
- `access_level`: `AccessLevel`
1616
- Associated functions:
1717
- `new`: which initializes the struct.
1818
- `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.
1919
- Other functions:
20-
- `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.
20+
- `check_user_name`: which takes a reference to `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.
2121

2222
### Expected Functions and Data Structures
2323

0 commit comments

Comments
 (0)