Commit be871424 authored by Trent Begin's avatar Trent Begin Committed by Commit Bot

docs: fix example parameter name in threading_and_tasks_testing

The parameter name passed to the DoSomethingAndReply example function
does not match the name of the callback given to PostTask.

Bug: none
Change-Id: I7899a22880adb0ea98f717e6415a3ce562853ef6
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2121349
Auto-Submit: Trent Begin <tbegin@chromium.org>
Reviewed-by: default avatarGabriel Charette <gab@chromium.org>
Commit-Queue: Gabriel Charette <gab@chromium.org>
Cr-Commit-Position: refs/heads/master@{#753423}
parent 85fe17ba
......@@ -54,7 +54,7 @@ class Foo {
public:
Foo() : owning_sequence_(base::SequencedTaskRunnerHandle::Get()) {}
DoSomethingAndReply(base::OnceClosure reply) {
DoSomethingAndReply(base::OnceClosure on_done) {
DCHECK(owning_sequence_->RunsTasksInCurrentSequence());
something_was_done_ = true;
owning_sequence_->PostTask(on_done);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment