1
0
mirror of https://github.com/rust-lang/rustlings.git synced 2024-12-10 11:10:26 +02:00

Merge branch 'main'

This commit is contained in:
mo8it 2024-04-24 15:48:29 +02:00
commit 0a2d4dae5a
2 changed files with 2 additions and 4 deletions

View File

@ -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)

View File

@ -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"