Skip to content

Commit 11e0184

Browse files
committed
fix doc
1 parent f52bfce commit 11e0184

File tree

5 files changed

+5
-2
lines changed

5 files changed

+5
-2
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -192,6 +192,7 @@ fn main() {
192192
- [Work Steal Overview](core/docs/en/work-steal.md)
193193
- [Ordered Work Steal Overview](core/docs/en/ordered-work-steal.md)
194194
- [Coroutine Pool Overview](core/docs/en/coroutine-pool.md)
195+
- [Hook Overview](hook/docs/en/hook.md)
195196

196197
[我有故事,你有酒吗?](https://github.com/acl-dev/open-coroutine-docs)
197198

core/docs/en/coroutine-pool.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ fn main() -> std::io::Result<()> {
1515
let mut pool = CoroutinePool::default();
1616
assert!(pool.is_empty());
1717
pool.submit_task(
18-
Some(String::from(task_name)),
18+
None,
1919
|_| {
2020
println!("Hello, world!");
2121
Some(2)

core/docs/en/overview.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,3 +29,4 @@ replacement for IO thread pools, see [why better](../en/why-better.md).
2929
- [Work Steal Overview](../en/work-steal.md)
3030
- [Ordered Work Steal Overview](../en/ordered-work-steal.md)
3131
- [Coroutine Pool Overview](../en/coroutine-pool.md)
32+
- [Hook Overview](../../../hook/docs/en/hook.md)

hook/docs/en/hook.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
todo

hook/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
clippy::separated_literal_suffix, // conflicts with clippy::unseparated_literal_suffix
4646
clippy::single_char_lifetime_names, // TODO: change lifetime names
4747
)]
48-
//! see `https://github.com/acl-dev/open-coroutine`
48+
#![doc = include_str!("../docs/en/hook.md")]
4949

5050
use once_cell::sync::OnceCell;
5151
use open_coroutine_core::co_pool::task::UserTaskFunc;

0 commit comments

Comments
 (0)