summaryrefslogtreecommitdiff
path: root/exercises
diff options
context:
space:
mode:
authorfmoko <mokou@posteo.de>2020-04-30 09:21:42 +0200
committerGitHub <noreply@github.com>2020-04-30 09:21:42 +0200
commitde65026db0cc44e0cafff418f731663f5c1e14a4 (patch)
treeea6bbdbdda00ee2900a799fad3f08d765cdfcc00 /exercises
parent071b51d588c411ede5704d4bf782927fe5e41b06 (diff)
parent959008284834bece0196a01e17ac69a7e3590116 (diff)
Merge pull request #377 from danwilhelm/dw-typos
Diffstat (limited to 'exercises')
-rw-r--r--exercises/macros/README.md2
-rw-r--r--exercises/standard_library_types/iterators2.rs10
-rw-r--r--exercises/standard_library_types/iterators4.rs6
3 files changed, 10 insertions, 8 deletions
diff --git a/exercises/macros/README.md b/exercises/macros/README.md
index ef9e4bd..b48b880 100644
--- a/exercises/macros/README.md
+++ b/exercises/macros/README.md
@@ -2,7 +2,7 @@
Rust's macro system is very powerful, but also kind of difficult to wrap your
head around. We're not going to teach you how to write your own fully-featured
-modules, instead we'll show you how to use and create them.
+macros. Instead, we'll show you how to use and create them.
#### Book Sections
diff --git a/exercises/standard_library_types/iterators2.rs b/exercises/standard_library_types/iterators2.rs
index a1274a2..837725f 100644
--- a/exercises/standard_library_types/iterators2.rs
+++ b/exercises/standard_library_types/iterators2.rs
@@ -1,8 +1,10 @@
// iterators2.rs
-// In this module, you'll learn some of unique advantages that iterators can offer
-// Step 1. Complete the `capitalize_first` function to pass the first two cases
-// Step 2. Apply the `capitalize_first` function to a vector of strings, ensuring that it returns a vector of strings as well
-// Step 3. Apply the `capitalize_first` function again to a list, but try and ensure it returns a single string
+// In this module, you'll learn some of unique advantages that iterators can offer.
+// Step 1. Complete the `capitalize_first` function to pass the first two cases.
+// Step 2. Apply the `capitalize_first` function to a vector of strings.
+// Ensure that it returns a vector of strings as well.
+// Step 3. Apply the `capitalize_first` function again to a list.
+// Try to ensure it returns a single string.
// As always, there are hints if you execute `rustlings hint iterators2`!
// I AM NOT DONE
diff --git a/exercises/standard_library_types/iterators4.rs b/exercises/standard_library_types/iterators4.rs
index b945613..8886283 100644
--- a/exercises/standard_library_types/iterators4.rs
+++ b/exercises/standard_library_types/iterators4.rs
@@ -3,13 +3,13 @@
// I AM NOT DONE
pub fn factorial(num: u64) -> u64 {
- // Complete this function to return factorial of num
+ // Complete this function to return the factorial of num
// Do not use:
// - return
- // For extra fun don't use:
+ // Try not to use:
// - imperative style loops (for, while)
// - additional variables
- // For the most fun don't use:
+ // For an extra challenge, don't use:
// - recursion
// Execute `rustlings hint iterators4` for hints.
}