summaryrefslogtreecommitdiffstats
path: root/tokio/src/runtime/blocking/task.rs
diff options
context:
space:
mode:
authorOleg Nosov <olegnosov1@gmail.com>2020-01-24 20:31:13 +0300
committerCarl Lerche <me@carllerche.com>2020-01-24 09:31:13 -0800
commitf9ddb93604a830d106475bd4c4cae436fafcc0da (patch)
tree6f200680e68b290794ef0512dcb031ef6d81c5ea /tokio/src/runtime/blocking/task.rs
parenta70f7203a46d471345128832987017612d8e4585 (diff)
docs: use third form in API docs (#2027)
Diffstat (limited to 'tokio/src/runtime/blocking/task.rs')
-rw-r--r--tokio/src/runtime/blocking/task.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/tokio/src/runtime/blocking/task.rs b/tokio/src/runtime/blocking/task.rs
index 8ea3bace..0553c9bd 100644
--- a/tokio/src/runtime/blocking/task.rs
+++ b/tokio/src/runtime/blocking/task.rs
@@ -8,7 +8,7 @@ pub(super) struct BlockingTask<T> {
}
impl<T> BlockingTask<T> {
- /// Initialize a new blocking task from the given function
+ /// Initializes a new blocking task from the given function
pub(super) fn new(func: T) -> BlockingTask<T> {
BlockingTask { func: Some(func) }
}