mirror of
https://github.com/clap-rs/clap
synced 2024-11-10 06:44:16 +00:00
docs(complete): Clarify some panic conditions
This commit is contained in:
parent
b488aab46c
commit
afb2a3dd05
1 changed files with 8 additions and 0 deletions
|
@ -14,6 +14,10 @@ use clap::App;
|
|||
pub trait Generator {
|
||||
/// Returns the file name that is created when this generator is called during compile time.
|
||||
///
|
||||
/// # Panics
|
||||
///
|
||||
/// May panic when called outside of the context of [`generate`] or [`generate_to`]
|
||||
///
|
||||
/// # Examples
|
||||
///
|
||||
/// ```
|
||||
|
@ -34,6 +38,10 @@ pub trait Generator {
|
|||
|
||||
/// Generates output out of [`clap::App`](App).
|
||||
///
|
||||
/// # Panics
|
||||
///
|
||||
/// May panic when called outside of the context of [`generate`] or [`generate_to`]
|
||||
///
|
||||
/// # Examples
|
||||
///
|
||||
/// The following example generator displays the [`clap::App`](App)
|
||||
|
|
Loading…
Reference in a new issue