mirror of
https://github.com/teloxide/teloxide.git
synced 2025-01-10 20:12:25 +01:00
Update the docs
This commit is contained in:
parent
fc605e1ff7
commit
30024d7792
1 changed files with 2 additions and 2 deletions
|
@ -122,8 +122,8 @@ pub fn teloxide(attr: TokenStream, item: TokenStream) -> TokenStream {
|
|||
///
|
||||
/// All the variants must be of the form `VariantName(MyStateType)`, and
|
||||
/// `MyStateType` must implement `Subtransition`. All `MyStateType`s must have
|
||||
/// the same `Subtransition::Aux`, which will be also used in the generated
|
||||
/// implementation.
|
||||
/// the same `Subtransition::Aux` and `Subtransition::Error`, which will be also
|
||||
/// used in the generated implementation.
|
||||
#[proc_macro_derive(Transition)]
|
||||
pub fn derive_transition(item: TokenStream) -> TokenStream {
|
||||
let input = parse_macro_input!(item as ItemEnum);
|
||||
|
|
Loading…
Reference in a new issue