mirror of
https://github.com/notohh/rustlings.git
synced 2024-10-30 08:49:12 -04:00
Merge branch 'main'
This commit is contained in:
commit
0a2d4dae5a
2 changed files with 2 additions and 4 deletions
|
@ -7,3 +7,4 @@ Within your program, you can also have independent parts that run simultaneously
|
|||
|
||||
- [Dining Philosophers example](https://doc.rust-lang.org/1.4.0/book/dining-philosophers.html)
|
||||
- [Using Threads to Run Code Simultaneously](https://doc.rust-lang.org/book/ch16-01-threads.html)
|
||||
- [Using Message Passing to Transfer Data Between Threads](https://doc.rust-lang.org/book/ch16-02-message-passing.html)
|
||||
|
|
|
@ -175,10 +175,7 @@ mode = "run"
|
|||
hint = """
|
||||
The error message points to the function `sale_price` and says it expects a type
|
||||
after the `->`. This is where the function's return type should be -- take a
|
||||
look at the `is_even` function for an example!
|
||||
|
||||
Also: Did you figure out that, technically, `u32` would be the more fitting type
|
||||
for the inputs of the functions here, since the original prices shouldn't be negative? If so, kudos!"""
|
||||
look at the `is_even` function for an example!"""
|
||||
|
||||
[[exercises]]
|
||||
name = "functions5"
|
||||
|
|
Loading…
Reference in a new issue