Skip to content

Commit bb5e7d1

Browse files
committed
Text fixes
1 parent 4e0988c commit bb5e7d1

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

exercises/luhn-from/HINTS.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@ Before doing this exercise you should probably do the original Luhn exercise.
44

55
`exercism fetch rust luhn`
66

7-
In the original Luhn exercise you only validated strings, but the Luhn algorithm can be applied integers as well.
7+
In the original Luhn exercise you only validated strings, but the Luhn algorithm can be applied to integers as well.
88

9-
In this exercise you'll use the [From trait](https://doc.rust-lang.org/std/convert/trait.From.html) to convert strings, strs and unsigned integers into a Struct that perfoms the validation.
9+
In this exercise you'll use the [From trait](https://doc.rust-lang.org/std/convert/trait.From.html) to convert strings, strs and unsigned integers into a Struct that performs the validation.

exercises/luhn-trait/HINTS.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,12 @@ Before doing this exercise you should probably do the original Luhn exercise and
55
- `exercism fetch rust luhn`
66
- `exercism fetch rust luhn-from`
77

8-
In the original Luhn exercise you only validated strings, but the Luhn algorithm can be applied integers as well.
8+
In the original Luhn exercise you only validated strings, but the Luhn algorithm can be applied to integers as well.
99

10-
In Luhn From you implemented a From trait, which also required you to create a Luhn struct.
10+
In Luhn From you implemented a From trait, which also required you to create a Luhn struct.
1111

1212
Instead of creating a Struct just to perform the validation, what if you you validated the primitives (i.e, String, u8, etc.) themselves?
1313

14-
In this exercise you'll create and implement a custom [trait](https://doc.rust-lang.org/book/traits.html) that performs the validation
14+
In this exercise you'll create and implement a custom [trait](https://doc.rust-lang.org/book/traits.html) that performs the validation.
1515

1616
Note: It is [not idiomatic Rust to implement traits on on primitives](https://doc.rust-lang.org/book/traits.html#rules-for-implementing-traits). In this exercise we're showing something that you _can_ do, not something you _should_ do. If you find yourself implementing traits on primitives, perhaps you have a case of [Primitive Obsession](http://wiki.c2.com/?PrimitiveObsession).

0 commit comments

Comments
 (0)