Skip to content

Commit 8253b78

Browse files
committed
Fix rustdoc warning
``` warning: `crate::task::panic_waker` is both a module and a function --> futures-test/src/task/mod.rs:26:23 | 26 | //! - [`panic_waker`](crate::task::panic_waker) creates a waker that panics when | ^^^^^^^^^^^^^^^^^^^^^^^^ ambiguous link | = note: `#[warn(rustdoc::broken_intra_doc_links)]` on by default help: to link to the module, prefix with `mod@` | 26 | //! - [`panic_waker`](mod@crate::task::panic_waker) creates a waker that panics when | ++++ help: to link to the function, add parentheses | 26 | //! - [`panic_waker`](crate::task::panic_waker()) creates a waker that panics when | ++ ```
1 parent 852b24f commit 8253b78

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

futures-test/src/task/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
//! Test wakers:
2424
//! - [`noop_waker`](crate::task::noop_waker) creates a waker that ignores calls to
2525
//! [`wake`](futures_core::task::Waker).
26-
//! - [`panic_waker`](crate::task::panic_waker) creates a waker that panics when
26+
//! - [`panic_waker`](crate::task::panic_waker()) creates a waker that panics when
2727
//! [`wake`](futures_core::task::Waker) is called.
2828
//! - [`new_count_waker`](crate::task::new_count_waker) creates a waker that increments a counter whenever
2929
//! [`wake`](futures_core::task::Waker) is called.

0 commit comments

Comments
 (0)