You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* changed setter names to indicate mutability
* updated method names and added missing ignore to test_name
* changed setter method names to have suffix _mut
* left the first test active
Copy file name to clipboardExpand all lines: exercises/concept/health-statistics/.docs/hints.md
+1-2Lines changed: 1 addition & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -26,7 +26,6 @@ fn foo() -> i32 {
26
26
27
27
## 3. Implement the setter methods
28
28
29
-
- The `set_age()` and `set_weight()` methods are setters, responsible for updating the corresponding field on a struct instance with the input argument.
29
+
- The `age_mut()` and `weight_mut()` methods are setters, responsible for mutating (updating) the corresponding field on a struct instance with the input argument.
30
30
31
31
- As the signatures of these methods specify, the setter methods shouldn't return anything.
0 commit comments