summaryrefslogtreecommitdiff
path: root/exercises
diff options
context:
space:
mode:
Diffstat (limited to 'exercises')
-rw-r--r--exercises/enums/README.md4
-rw-r--r--exercises/error_handling/README.md4
-rw-r--r--exercises/generics/generics3.rs4
-rw-r--r--exercises/traits/README.md6
4 files changed, 9 insertions, 9 deletions
diff --git a/exercises/enums/README.md b/exercises/enums/README.md
index a090a43..091f5d0 100644
--- a/exercises/enums/README.md
+++ b/exercises/enums/README.md
@@ -1,8 +1,8 @@
### Enums
-Rust allows you to define types called "enums" which enumerate possible values.
+Rust allows you to define types called "enums" which enumerate possible values.
Enums are a feature in many languages, but their capabilities differ in each language. Rust’s enums are most similar to algebraic data types in functional languages, such as F#, OCaml, and Haskell.
-Useful in combination with enums is Rust's "pattern matching" facility, which makes it easy to run different code for different values of an enumeration.
+Useful in combination with enums is Rust's "pattern matching" facility, which makes it easy to run different code for different values of an enumeration.
#### Book Sections
diff --git a/exercises/error_handling/README.md b/exercises/error_handling/README.md
index cf66c2b..77a58d1 100644
--- a/exercises/error_handling/README.md
+++ b/exercises/error_handling/README.md
@@ -1,5 +1,5 @@
For this exercise check out the sections:
-- [Error Handling](https://doc.rust-lang.org/book/ch09-02-recoverable-errors-with-result.html)
-- [Generics](https://doc.rust-lang.org/book/ch10-01-syntax.html)
+- [Error Handling](https://doc.rust-lang.org/book/ch09-02-recoverable-errors-with-result.html)
+- [Generics](https://doc.rust-lang.org/book/ch10-01-syntax.html)
of the Rust Book.
diff --git a/exercises/generics/generics3.rs b/exercises/generics/generics3.rs
index 6f95145..64dd9bc 100644
--- a/exercises/generics/generics3.rs
+++ b/exercises/generics/generics3.rs
@@ -4,8 +4,8 @@
// However, the school also issues alphabetical grades (A+ -> F-) and needs
// to be able to print both types of report card!
-// Make the necessary code changes in the struct ReportCard and the impl block
-// to support alphabetical report cards. Change the Grade in the second test to "A+"
+// Make the necessary code changes in the struct ReportCard and the impl block
+// to support alphabetical report cards. Change the Grade in the second test to "A+"
// to show that your changes allow alphabetical grades.
// Execute 'rustlings hint generics3' for hints!
diff --git a/exercises/traits/README.md b/exercises/traits/README.md
index 1ce46fe..8cd03ec 100644
--- a/exercises/traits/README.md
+++ b/exercises/traits/README.md
@@ -1,6 +1,6 @@
### Traits
-A trait is a collection of methods.
+A trait is a collection of methods.
Data types can implement traits. To do so, the methods making up the trait are defined for the data type. For example, the `String` data type implements the `From<&str>` trait. This allows a user to write `String::from("hello")`.
@@ -8,7 +8,7 @@ In this way, traits are somewhat similar to Java interfaces and C++ abstract cla
Some additional common Rust traits include:
-+ `Clone` (the `clone` method),
++ `Clone` (the `clone` method),
+ `Display` (which allows formatted display via `{}`), and
+ `Debug` (which allows formatted display via `{:?}`).
@@ -17,4 +17,4 @@ Because traits indicate shared behavior between data types, they are useful when
#### Book Sections
-- [Traits](https://doc.rust-lang.org/book/ch10-02-traits.html) \ No newline at end of file
+- [Traits](https://doc.rust-lang.org/book/ch10-02-traits.html)