Skip to content

Commit

Permalink
Fix missing doc cfg on <$Delimiter>::surround
Browse files Browse the repository at this point in the history
  • Loading branch information
dtolnay committed Feb 1, 2025
1 parent e0e40cf commit 3db4bf2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/token.rs
Original file line number Diff line number Diff line change
Expand Up @@ -501,6 +501,7 @@ macro_rules! define_delimiters {

impl $name {
#[cfg(feature = "printing")]
#[cfg_attr(docsrs, doc(cfg(feature = "printing")))]
pub fn surround<F>(&self, tokens: &mut TokenStream, f: F)
where
F: FnOnce(&mut TokenStream),
Expand Down

0 comments on commit 3db4bf2

Please sign in to comment.