diff options
| author | mo8it <mo8it@proton.me> | 2024-04-17 23:34:27 +0200 |
|---|---|---|
| committer | mo8it <mo8it@proton.me> | 2024-04-17 23:34:27 +0200 |
| commit | 2f810a4da67233716ad93e00afff6e8b260f4807 (patch) | |
| tree | f5a33357141d25d08b6726910efe33f2338b9cdb /exercises/09_strings | |
| parent | cb9f1ac9ce3c834b0cca964b6809b74508f80b54 (diff) | |
Clean up and unify exercises
Diffstat (limited to 'exercises/09_strings')
| -rw-r--r-- | exercises/09_strings/strings1.rs | 5 | ||||
| -rw-r--r-- | exercises/09_strings/strings2.rs | 5 | ||||
| -rw-r--r-- | exercises/09_strings/strings3.rs | 5 | ||||
| -rw-r--r-- | exercises/09_strings/strings4.rs | 6 |
4 files changed, 1 insertions, 20 deletions
diff --git a/exercises/09_strings/strings1.rs b/exercises/09_strings/strings1.rs index a1255a3..de762eb 100644 --- a/exercises/09_strings/strings1.rs +++ b/exercises/09_strings/strings1.rs @@ -1,9 +1,4 @@ -// strings1.rs -// // Make me compile without changing the function signature! -// -// Execute `rustlings hint strings1` or use the `hint` watch subcommand for a -// hint. fn main() { let answer = current_favorite_color(); diff --git a/exercises/09_strings/strings2.rs b/exercises/09_strings/strings2.rs index ba76fe6..4768278 100644 --- a/exercises/09_strings/strings2.rs +++ b/exercises/09_strings/strings2.rs @@ -1,9 +1,4 @@ -// strings2.rs -// // Make me compile without changing the function signature! -// -// Execute `rustlings hint strings2` or use the `hint` watch subcommand for a -// hint. fn main() { let word = String::from("green"); // Try not changing this line :) diff --git a/exercises/09_strings/strings3.rs b/exercises/09_strings/strings3.rs index d53f654..f83a531 100644 --- a/exercises/09_strings/strings3.rs +++ b/exercises/09_strings/strings3.rs @@ -1,8 +1,3 @@ -// strings3.rs -// -// Execute `rustlings hint strings3` or use the `hint` watch subcommand for a -// hint. - fn trim_me(input: &str) -> String { // TODO: Remove whitespace from both ends of a string! ??? diff --git a/exercises/09_strings/strings4.rs b/exercises/09_strings/strings4.rs index a034aa4..1f3d88b 100644 --- a/exercises/09_strings/strings4.rs +++ b/exercises/09_strings/strings4.rs @@ -1,11 +1,7 @@ -// strings4.rs -// -// Ok, here are a bunch of values-- some are `String`s, some are `&str`s. Your +// Ok, here are a bunch of values - some are `String`s, some are `&str`s. Your // task is to call one of these two functions on each value depending on what // you think each value is. That is, add either `string_slice` or `string` // before the parentheses on each line. If you're right, it will compile! -// -// No hints this time! fn string_slice(arg: &str) { println!("{}", arg); |
