Skip to content

Commit

Permalink
Merge pull request #5938 from ilyagr/error-insert-docs
Browse files Browse the repository at this point in the history
document `clap::Error::insert` a bit better
  • Loading branch information
epage authored Mar 4, 2025
2 parents 94c774b + b86dc51 commit fdbbf66
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions clap_builder/src/error/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,8 @@ impl<F: ErrorFormatter> Error<F> {
}

/// Insert a piece of context
///
/// If this `ContextKind` is already present, its value is replaced and the old value is returned.
#[inline(never)]
#[cfg(feature = "error-context")]
pub fn insert(&mut self, kind: ContextKind, value: ContextValue) -> Option<ContextValue> {
Expand Down

0 comments on commit fdbbf66

Please # to comment.