mirror of
https://github.com/notohh/rustlings.git
synced 2024-12-23 03:38:09 -05:00
Merge pull request #751 from juanprq/main
fix: remove trailing whitespace
This commit is contained in:
commit
dbb2624403
4 changed files with 8 additions and 4 deletions
|
@ -1,6 +1,8 @@
|
||||||
// This shopping list program isn't compiling!
|
// This shopping list program isn't compiling!
|
||||||
// Use your knowledge of generics to fix it.
|
// Use your knowledge of generics to fix it.
|
||||||
|
|
||||||
|
// Execute `rustlings hint generics1` for hints!
|
||||||
|
|
||||||
// I AM NOT DONE
|
// I AM NOT DONE
|
||||||
|
|
||||||
fn main() {
|
fn main() {
|
||||||
|
|
|
@ -1,6 +1,8 @@
|
||||||
// This powerful wrapper provides the ability to store a positive integer value.
|
// This powerful wrapper provides the ability to store a positive integer value.
|
||||||
// Rewrite it using generics so that it supports wrapping ANY type.
|
// Rewrite it using generics so that it supports wrapping ANY type.
|
||||||
|
|
||||||
|
// Execute `rustlings hint generics2` for hints!
|
||||||
|
|
||||||
// I AM NOT DONE
|
// I AM NOT DONE
|
||||||
|
|
||||||
struct Wrapper {
|
struct Wrapper {
|
||||||
|
|
|
@ -1,11 +1,11 @@
|
||||||
// iterators1.rs
|
// iterators1.rs
|
||||||
//
|
//
|
||||||
// Make me compile by filling in the `???`s
|
// Make me compile by filling in the `???`s
|
||||||
//
|
//
|
||||||
// When performing operations on elements within a collection, iterators are essential.
|
// When performing operations on elements within a collection, iterators are essential.
|
||||||
// This module helps you get familiar with the structure of using an iterator and
|
// This module helps you get familiar with the structure of using an iterator and
|
||||||
// how to go through elements within an iterable collection.
|
// how to go through elements within an iterable collection.
|
||||||
//
|
//
|
||||||
// Execute `rustlings hint iterators1` for hints :D
|
// Execute `rustlings hint iterators1` for hints :D
|
||||||
|
|
||||||
// I AM NOT DONE
|
// I AM NOT DONE
|
||||||
|
|
|
@ -31,7 +31,7 @@ impl Package {
|
||||||
}
|
}
|
||||||
|
|
||||||
fn get_fees(&self, cents_per_gram: i32) -> ??? {
|
fn get_fees(&self, cents_per_gram: i32) -> ??? {
|
||||||
// Something goes here...
|
// Something goes here...
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue