Skip to content

Commit

Permalink
Merge pull request #1846 from dtolnay/surroundcfg
Browse files Browse the repository at this point in the history
Fix missing doc cfg on <$Delimiter>::surround
  • Loading branch information
dtolnay authored Feb 1, 2025
2 parents e0e40cf + f0ee7e9 commit bf672a9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 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 Expand Up @@ -630,6 +631,7 @@ impl Hash for Group {

impl Group {
#[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 bf672a9

Please sign in to comment.