Skip to content

Commit 2f60f4d

Browse files
committed
Remove newline at the end of multiline strings
1 parent b017b87 commit 2f60f4d

File tree

1 file changed

+10
-20
lines changed

1 file changed

+10
-20
lines changed

rustlings-macros/info.toml

Lines changed: 10 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -16,16 +16,14 @@ get started, here are some notes about how Rustlings operates:
1616
3. If you're stuck on an exercise, enter `h` to show a hint.
1717
4. If an exercise doesn't make sense to you, feel free to open an issue on GitHub!
1818
(https://github.com/rust-lang/rustlings). We look at every issue, and sometimes,
19-
other learners do too so you can help each other out!
20-
"""
19+
other learners do too so you can help each other out!"""
2120

2221
final_message = """We hope you enjoyed learning about the various aspects of Rust!
2322
If you noticed any issues, don't hesitate to report them on Github.
2423
You can also contribute your own exercises to help the greater community!
2524
2625
Before reporting an issue or contributing, please read our guidelines:
27-
https://github.com/rust-lang/rustlings/blob/main/CONTRIBUTING.md
28-
"""
26+
https://github.com/rust-lang/rustlings/blob/main/CONTRIBUTING.md"""
2927

3028
# INTRO
3129

@@ -130,8 +128,7 @@ The type of Constants must always be annotated.
130128
131129
Read more about constants and the differences between variables and constants
132130
under 'Constants' in the book's section 'Variables and Mutability':
133-
https://doc.rust-lang.org/book/ch03-01-variables-and-mutability.html#constants
134-
"""
131+
https://doc.rust-lang.org/book/ch03-01-variables-and-mutability.html#constants"""
135132

136133
# FUNCTIONS
137134

@@ -312,8 +309,7 @@ In Rust, there are two ways to define a Vector.
312309
the initial values.
313310
314311
Check this chapter: https://doc.rust-lang.org/stable/book/ch08-01-vectors.html
315-
of the Rust book to learn more.
316-
"""
312+
of the Rust book to learn more."""
317313

318314
[[exercises]]
319315
name = "vecs2"
@@ -327,8 +323,7 @@ In the second function, we map the values of the input and collect them into a v
327323
After you've completed both functions, decide for yourself which approach you
328324
like better.
329325
330-
What do you think is the more commonly used pattern under Rust developers?
331-
"""
326+
What do you think is the more commonly used pattern under Rust developers?"""
332327

333328
# MOVE SEMANTICS
334329

@@ -355,8 +350,7 @@ We call this "moving" a variable. When we pass `vec0` into `fill_vec`, it's
355350
being "moved" into `vec1`, meaning we can't access `vec0` anymore.
356351
357352
You could make another, separate version of the data that's in `vec0` and
358-
pass it to `fill_vec` instead.
359-
"""
353+
pass it to `fill_vec` instead."""
360354

361355
[[exercises]]
362356
name = "move_semantics3"
@@ -375,8 +369,7 @@ Carefully reason about the range in which each mutable reference is in
375369
scope. Does it help to update the value of `x` immediately after
376370
the mutable reference is taken?
377371
Read more about 'Mutable References' in the book's section 'References and Borrowing':
378-
https://doc.rust-lang.org/book/ch04-02-references-and-borrowing.html#mutable-references.
379-
"""
372+
https://doc.rust-lang.org/book/ch04-02-references-and-borrowing.html#mutable-references."""
380373

381374
[[exercises]]
382375
name = "move_semantics5"
@@ -517,8 +510,7 @@ Example:
517510
`placeholder("blue");`
518511
should become
519512
`string_slice("blue");`
520-
because "blue" is `&str`, not `String`.
521-
"""
513+
because "blue" is `&str`, not `String`."""
522514

523515
# MODULES
524516

@@ -620,8 +612,7 @@ Remember that `Option`s can be nested in if-let and while-let statements.
620612
621613
For example: `if let Some(Some(x)) = y`
622614
623-
Also see `Option::flatten`
624-
"""
615+
Also see `Option::flatten`"""
625616

626617
[[exercises]]
627618
name = "options3"
@@ -813,8 +804,7 @@ Here is how to specify a trait bound for an implementation block:
813804
`impl<T: Trait1 + Trait2 + …> for Foo<T> { … }`
814805
815806
You may need this:
816-
`use std::fmt::Display;`
817-
"""
807+
`use std::fmt::Display;`"""
818808

819809
# LIFETIMES
820810

0 commit comments

Comments
 (0)