Skip to content

Commit 22bb662

Browse files
committed
fix(exercises): remove trailing spaces
1 parent 362c1b0 commit 22bb662

File tree

5 files changed

+10
-10
lines changed

5 files changed

+10
-10
lines changed

exercises/hashmaps/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Hashmaps
22
A *hash map* allows you to associate a value with a particular key.
3-
You may also know this by the names [*unordered map* in C++](https://en.cppreference.com/w/cpp/container/unordered_map),
3+
You may also know this by the names [*unordered map* in C++](https://en.cppreference.com/w/cpp/container/unordered_map),
44
[*dictionary* in Python](https://docs.python.org/3/tutorial/datastructures.html#dictionaries) or an *associative array* in other languages.
55

66
This is the other data structure that we've been talking about before, when

exercises/lifetimes/README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,17 @@
33
Lifetimes tell the compiler how to check whether references live long
44
enough to be valid in any given situation. For example lifetimes say
55
"make sure parameter 'a' lives as long as parameter 'b' so that the return
6-
value is valid".
6+
value is valid".
77

8-
They are only necessary on borrows, i.e. references,
8+
They are only necessary on borrows, i.e. references,
99
since copied parameters or moves are owned in their scope and cannot
1010
be referenced outside. Lifetimes mean that calling code of e.g. functions
11-
can be checked to make sure their arguments are valid. Lifetimes are
11+
can be checked to make sure their arguments are valid. Lifetimes are
1212
restrictive of their callers.
1313

14-
If you'd like to learn more about lifetime annotations, the
15-
[lifetimekata](https://tfpk.github.io/lifetimekata/) project
16-
has a similar style of exercises to Rustlings, but is all about
14+
If you'd like to learn more about lifetime annotations, the
15+
[lifetimekata](https://tfpk.github.io/lifetimekata/) project
16+
has a similar style of exercises to Rustlings, but is all about
1717
learning to write lifetime annotations.
1818

1919
## Further information

exercises/macros/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Rust's macro system is very powerful, but also kind of difficult to wrap your
44
head around. We're not going to teach you how to write your own fully-featured
55
macros. Instead, we'll show you how to use and create them.
66

7-
If you'd like to learn more about writing your own macros, the
7+
If you'd like to learn more about writing your own macros, the
88
[macrokata](https://github.com/tfpk/macrokata) project has a similar style
99
of exercises to Rustlings, but is all about learning to write Macros.
1010

exercises/options/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Options
22

3-
Type Option represents an optional value: every Option is either Some and contains a value, or None, and does not.
3+
Type Option represents an optional value: every Option is either Some and contains a value, or None, and does not.
44
Option types are very common in Rust code, as they have a number of uses:
55
- Initial values
66
- Return values for functions that are not defined over their entire input range (partial functions)

exercises/threads/threads1.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ fn main() {
3030
if results.len() != 10 {
3131
panic!("Oh no! All the spawned threads did not finish!");
3232
}
33-
33+
3434
println!();
3535
for (i, result) in results.into_iter().enumerate() {
3636
println!("thread {} took {}ms", i, result);

0 commit comments

Comments
 (0)