Skip to content

Commit ee7cdc6

Browse files
Koalab99Corentin ARNOULD
andauthored
chore: Removed extra whitespaces
Co-authored-by: Corentin ARNOULD <corentin.arn@gmail.com>
1 parent 9699da4 commit ee7cdc6

File tree

7 files changed

+25
-25
lines changed

7 files changed

+25
-25
lines changed

CHANGELOG.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,14 +83,14 @@
8383
* Update deps to version compatable with aarch64-pc-windows (#263) ([19a93428](https://github.com/rust-lang/rustlings/commit/19a93428b3c73d994292671f829bdc8e5b7b3401))
8484
* **docs:**
8585
* Added a necessary step to Windows installation process (#242) ([3906efcd](https://github.com/rust-lang/rustlings/commit/3906efcd52a004047b460ed548037093de3f523f))
86-
* Fixed mangled sentence from book; edited for clarity (#266) ([ade52ff](https://github.com/rust-lang/rustlings/commit/ade52ffb739987287ddd5705944c8777705faed9))
86+
* Fixed mangled sentence from book; edited for clarity (#266) ([ade52ff](https://github.com/rust-lang/rustlings/commit/ade52ffb739987287ddd5705944c8777705faed9))
8787
* Updated iterators readme to account for iterators4 exercise (#273) ([bec8e3a](https://github.com/rust-lang/rustlings/commit/bec8e3a644cbd88db1c73ea5f1d8a364f4a34016))
8888
* **installation:** make fatal errors more obvious (#272) ([17d0951e](https://github.com/rust-lang/rustlings/commit/17d0951e66fda8e11b204d5c4c41a0d5e22e78f7))
8989
* **iterators2:**
9090
* Remove reference to missing iterators2.rs (#245) ([419f7797](https://github.com/rust-lang/rustlings/commit/419f7797f294e4ce6a2b883199731b5bde77d262))
9191
* **as_ref_mut:** Enable a test and improve per clippy's suggestion (#256) ([dfdf809](https://github.com/rust-lang/rustlings/commit/dfdf8093ebbd4145864995627b812780de52f902))
9292
* **tests1:**
93-
* Change test command ([fe10e06c](https://github.com/rust-lang/rustlings/commit/fe10e06c3733ddb4a21e90d09bf79bfe618e97ce)
93+
* Change test command ([fe10e06c](https://github.com/rust-lang/rustlings/commit/fe10e06c3733ddb4a21e90d09bf79bfe618e97ce)
9494
* Correct test command in tests1.rs comment (#263) ([39fa7ae](https://github.com/rust-lang/rustlings/commit/39fa7ae8b70ad468da49b06f11b2383135a63bcf))
9595

9696
#### Features

exercises/enums/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
### Enums
22

3-
Rust allows you to define types called "enums" which enumerate possible values.
3+
Rust allows you to define types called "enums" which enumerate possible values.
44
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.
5-
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.
5+
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.
66

77
#### Book Sections
88

exercises/error_handling/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
For this exercise check out the sections:
2-
- [Error Handling](https://doc.rust-lang.org/book/ch09-02-recoverable-errors-with-result.html)
3-
- [Generics](https://doc.rust-lang.org/book/ch10-01-syntax.html)
2+
- [Error Handling](https://doc.rust-lang.org/book/ch09-02-recoverable-errors-with-result.html)
3+
- [Generics](https://doc.rust-lang.org/book/ch10-01-syntax.html)
44

55
of the Rust Book.

exercises/generics/generics3.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
// However, the school also issues alphabetical grades (A+ -> F-) and needs
55
// to be able to print both types of report card!
66

7-
// Make the necessary code changes in the struct ReportCard and the impl block
8-
// to support alphabetical report cards. Change the Grade in the second test to "A+"
7+
// Make the necessary code changes in the struct ReportCard and the impl block
8+
// to support alphabetical report cards. Change the Grade in the second test to "A+"
99
// to show that your changes allow alphabetical grades.
1010

1111
// Execute 'rustlings hint generics3' for hints!

exercises/traits/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
### Traits
22

3-
A trait is a collection of methods.
3+
A trait is a collection of methods.
44

55
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")`.
66

77
In this way, traits are somewhat similar to Java interfaces and C++ abstract classes.
88

99
Some additional common Rust traits include:
1010

11-
+ `Clone` (the `clone` method),
11+
+ `Clone` (the `clone` method),
1212
+ `Display` (which allows formatted display via `{}`), and
1313
+ `Debug` (which allows formatted display via `{:?}`).
1414

@@ -17,4 +17,4 @@ Because traits indicate shared behavior between data types, they are useful when
1717

1818
#### Book Sections
1919

20-
- [Traits](https://doc.rust-lang.org/book/ch10-02-traits.html)
20+
- [Traits](https://doc.rust-lang.org/book/ch10-02-traits.html)

info.toml

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ because we want to assign a different typed value to an existing variable. Somet
5252
you may also like to reuse existing variable names because you are just converting
5353
values to different types like in this exercise.
5454
Fortunately Rust has a powerful solution to this problem: 'Shadowing'!
55-
You can read more about 'Shadowing' in the book's section 'Variables and Mutability':
55+
You can read more about 'Shadowing' in the book's section 'Variables and Mutability':
5656
https://doc.rust-lang.org/book/ch03-01-variables-and-mutability.html#shadowing
5757
Try to solve this exercise afterwards using this technique."""
5858

@@ -61,13 +61,13 @@ name = "variables6"
6161
path = "exercises/variables/variables6.rs"
6262
mode = "compile"
6363
hint = """
64-
We know about variables and mutability, but there is another important type of
65-
variable available; constants.
66-
Constants are always immutable and they are declared with keyword 'const' rather
64+
We know about variables and mutability, but there is another important type of
65+
variable available; constants.
66+
Constants are always immutable and they are declared with keyword 'const' rather
6767
than keyword 'let'.
6868
Constants types must also always be annotated.
6969
70-
Read more about constants under 'Differences Between Variables and Constants' in the book's section 'Variables and Mutability':
70+
Read more about constants under 'Differences Between Variables and Constants' in the book's section 'Variables and Mutability':
7171
https://doc.rust-lang.org/book/ch03-01-variables-and-mutability.html#differences-between-variables-and-constants
7272
"""
7373

@@ -237,8 +237,8 @@ name = "structs2"
237237
path = "exercises/structs/structs2.rs"
238238
mode = "test"
239239
hint = """
240-
Creating instances of structs is easy, all you need to do is assign some values to its fields.
241-
There is however some shortcuts that can be taken when instantiating structs.
240+
Creating instances of structs is easy, all you need to do is assign some values to its fields.
241+
There is however some shortcuts that can be taken when instantiating structs.
242242
Have a look in The Book, to find out more: https://doc.rust-lang.org/stable/book/ch05-01-defining-structs.html#creating-instances-from-other-instances-with-struct-update-syntax"""
243243

244244
[[exercises]]
@@ -682,8 +682,8 @@ name = "iterators4"
682682
path = "exercises/standard_library_types/iterators4.rs"
683683
mode = "test"
684684
hint = """
685-
In an imperative language, you might write a for loop that updates
686-
a mutable variable. Or, you might write code utilizing recursion
685+
In an imperative language, you might write a for loop that updates
686+
a mutable variable. Or, you might write code utilizing recursion
687687
and a match clause. In Rust you can take another functional
688688
approach, computing the factorial elegantly with ranges and iterators."""
689689

@@ -703,10 +703,10 @@ name = "traits2"
703703
path = "exercises/traits/traits2.rs"
704704
mode = "test"
705705
hint = """
706-
Notice how the trait takes ownership of 'self',and returns `Self'.
706+
Notice how the trait takes ownership of 'self',and returns `Self'.
707707
Try mutating the incoming string vector.
708708
709-
Vectors provide suitable methods for adding an element at the end. See
709+
Vectors provide suitable methods for adding an element at the end. See
710710
the documentation at: https://doc.rust-lang.org/std/vec/struct.Vec.html"""
711711

712712
# Generics
@@ -724,7 +724,7 @@ name = "generics2"
724724
path = "exercises/generics/generics2.rs"
725725
mode = "test"
726726
hint = """
727-
Currently we are wrapping only values of type 'u32'.
727+
Currently we are wrapping only values of type 'u32'.
728728
Maybe we could update the explicit references to this data type somehow?
729729
730730
If you are still stuck https://doc.rust-lang.org/stable/book/ch10-01-syntax.html#in-method-definitions
@@ -735,7 +735,7 @@ name = "generics3"
735735
path = "exercises/generics/generics3.rs"
736736
mode = "test"
737737
hint = """
738-
To find the best solution to this challenge you're going to need to think back to your
738+
To find the best solution to this challenge you're going to need to think back to your
739739
knowledge of traits, specifically Trait Bound Syntax - you may also need this: "use std::fmt::Display;"
740740
741741
This is definitely harder than the last two exercises! You need to think about not only making the

install.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ if (Get-Command cargo -ErrorAction SilentlyContinue) {
3535
function vercomp($v1, $v2) {
3636
if ($v1 -eq $v2) {
3737
return 0
38-
}
38+
}
3939

4040
$v1 = $v1.Replace(".", "0")
4141
$v2 = $v2.Replace(".", "0")

0 commit comments

Comments
 (0)