mirror of
https://github.com/rust-lang/rustlings.git
synced 2026-11-12 23:45:57 +00:00
async1: update hint
The previous hint corresponds to an early draft of the async1 exercise.
It should've been updated in 38a1078c23,
which replaced that draft with a different approach.
This commit is contained in:
@@ -1223,7 +1223,7 @@ input_files = [
|
||||
hint = """
|
||||
Asynchronous runtimes like tokio can only spawn tasks that are defined as async
|
||||
functions, not regular ones. Add the "async" keyword before the "fn" keyword of
|
||||
the functions "tim", "carl" and "nick".
|
||||
the function "calculate_mean_score".
|
||||
|
||||
An async task can wait for another one to complete by "awaiting" it. Add
|
||||
".await" after the three "task_name" variables in the "block_on" call."""
|
||||
".await" after the three "mean_score_*" variables in the "assert_eq" statements."""
|
||||
|
||||
Reference in New Issue
Block a user