Skip to content

Commit 96347df

Browse files
authored
fix(try_from_into): Update description (#584)
Description update
1 parent 9334783 commit 96347df

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

exercises/conversions/try_from_into.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,12 @@ struct Color {
1515

1616
// Your task is to complete this implementation
1717
// and return an Ok result of inner type Color.
18-
// You need create implementation for a tuple of three integer,
19-
// an array of three integer and slice of integer.
18+
// You need to create an implementation for a tuple of three integers,
19+
// an array of three integers and a slice of integers.
2020
//
21-
// Note, that implementation for tuple and array will be checked at compile-time,
22-
// but slice implementation need check slice length!
23-
// Also note, that chunk of correct rgb color must be integer in range 0..=255.
21+
// Note that the implementation for tuple and array will be checked at compile time,
22+
// but the slice implementation needs to check the slice length!
23+
// Also note that correct RGB color values must be integers in the 0..=255 range.
2424

2525
// Tuple implementation
2626
impl TryFrom<(i16, i16, i16)> for Color {

0 commit comments

Comments
 (0)