docs(complete): Clarify some panic conditions

This commit is contained in:
Ed Page 2022-01-21 08:29:38 -06:00
parent b488aab46c
commit afb2a3dd05

View file

@ -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)