Skip to content

Commit

Permalink
Update control-structures-exercise.md (#163)
Browse files Browse the repository at this point in the history
typo
  • Loading branch information
Valcoholics authored Nov 28, 2023
1 parent 517a168 commit 6127fd3
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ Create a function called `fizzBuzz` that accepts a `uint` called `_number` and r

### Do Not Disturb

Create a function called `doNotDisturb` that accepts a `_uint` called `_time`, and returns a `string memory`. It should adhere to the following properties:
Create a function called `doNotDisturb` that accepts a `uint` called `_time`, and returns a `string memory`. It should adhere to the following properties:

- If `_time` is greater than or equal to 2400, trigger a `panic`
- If `_time` is greater than 2200 or less than 800, `revert` with a custom error of `AfterHours`, and include the time provided
Expand Down

0 comments on commit 6127fd3

Please sign in to comment.