From 8e19acfb988e7cce926cfa20d19170ab42164b2c Mon Sep 17 00:00:00 2001 From: sofiiako <19rubisco93@gmail.com> Date: Wed, 21 Jul 2021 14:07:04 +0300 Subject: [PATCH] fix(Task description Creating Generics #3): Improved description of requirements for n Replaced "greater than zero" with "equal to or greater than zero" for n requirements Closes https://youtrack.jetbrains.com/issue/EDC-458 --- Power Tools/Operator Overloading/Exercise 3/task.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Power Tools/Operator Overloading/Exercise 3/task.md b/Power Tools/Operator Overloading/Exercise 3/task.md index e4905a71..6966cb83 100644 --- a/Power Tools/Operator Overloading/Exercise 3/task.md +++ b/Power Tools/Operator Overloading/Exercise 3/task.md @@ -9,11 +9,11 @@ operations for a `Repository` named `r`: there are no `null` locations remaining, appends `rv` to the end of `list`. - `r[n] = rv` Places `rv` into location `n` in `list`. Requires that `n` be - greater than zero and less than `list.size`. Requires that `list[n]` be + equal to or greater than zero and less than `list.size`. Requires that `list[n]` be non-`null`. -- `r[n]` Retrieves the value `list[n]`. Requires that `n` be greater than zero - and less than `list.size`. Requires that `list[n]` be non-`null`. +- `r[n]` Retrieves the value `list[n]`. Requires that `n` be equal to or greater + than zero and less than `list.size`. Requires that `list[n]` be non-`null`. Add a `toString()` that produces `list` separated by commas.