Skip to content

Commit

Permalink
Fix a rustdoc warning
Browse files Browse the repository at this point in the history
Fixes
`warning: `cfg` is both a function and a macro`

Signed-off-by: Colin Walters <[email protected]>
  • Loading branch information
cgwalters committed Jan 6, 2023
1 parent 5bc95a1 commit a71340c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -721,7 +721,7 @@ impl Drop for FailGuard {
impl FailGuard {
/// Configure the actions for a fail point during the lifetime of the returning `FailGuard`.
///
/// Read documentation of [`cfg`] for more details.
/// Read documentation of [`cfg()`] for more details.
pub fn new<S: Into<String>>(name: S, actions: &str) -> Result<FailGuard, String> {
let name = name.into();
cfg(&name, actions)?;
Expand Down

0 comments on commit a71340c

Please sign in to comment.