Skip to content

Commit

Permalink
f fix docs
Browse files Browse the repository at this point in the history
  • Loading branch information
TheBlueMatt committed Dec 8, 2024
1 parent f1a7bec commit 5113f3c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lightning-macros/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ fn token_to_stream(token: TokenTree) -> proc_macro::TokenStream {
proc_macro::TokenStream::from(token)
}

/// Processes a list of fields in a variant definition (see the docs for [`skip_legacy_fields`])
/// Processes a list of fields in a variant definition (see the docs for [`skip_legacy_fields!`])
fn process_fields(group: Group) -> proc_macro::TokenStream {
let mut computed_fields = proc_macro::TokenStream::new();
if group.delimiter() == Delimiter::Brace {
Expand Down Expand Up @@ -247,7 +247,7 @@ pub fn skip_legacy_fields(expr: TokenStream) -> TokenStream {
/// ```ignore
/// drop_legacy_field_definition!(Self {
/// field1: _init_tlv_based_struct_field!(field1, option),
/// field2: _init_tlv_based_struct_field!(field2, (legacy, u64, {}, {}))),
/// field2: _init_tlv_based_struct_field!(field2, (legacy, u64, {}, {})),
/// })
/// ```
/// and will drop fields defined like `field2` with a type starting with `legacy`.
Expand Down

0 comments on commit 5113f3c

Please sign in to comment.