diff options
| author | JP <jose@palako.com> | 2020-11-08 19:30:40 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-11-08 19:30:40 +0100 |
| commit | 96347df9df294f01153b29d9ad4ba361f665c755 (patch) | |
| tree | 87a7c97b319a12fcd7f2c96259406190ec737475 /exercises | |
| parent | 9334783da31d821cc59174fbe8320df95828926c (diff) | |
fix(try_from_into): Update description (#584)
Description update
Diffstat (limited to 'exercises')
| -rw-r--r-- | exercises/conversions/try_from_into.rs | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/exercises/conversions/try_from_into.rs b/exercises/conversions/try_from_into.rs index cd14daf..38ce2db 100644 --- a/exercises/conversions/try_from_into.rs +++ b/exercises/conversions/try_from_into.rs @@ -15,12 +15,12 @@ struct Color { // Your task is to complete this implementation // and return an Ok result of inner type Color. -// You need create implementation for a tuple of three integer, -// an array of three integer and slice of integer. +// You need to create an implementation for a tuple of three integers, +// an array of three integers and a slice of integers. // -// Note, that implementation for tuple and array will be checked at compile-time, -// but slice implementation need check slice length! -// Also note, that chunk of correct rgb color must be integer in range 0..=255. +// Note that the implementation for tuple and array will be checked at compile time, +// but the slice implementation needs to check the slice length! +// Also note that correct RGB color values must be integers in the 0..=255 range. // Tuple implementation impl TryFrom<(i16, i16, i16)> for Color { |
