@@ -86,12 +86,12 @@ impl TokenTree {
8686 }
8787 }
8888
89- // Create a `TokenTree::Token` with alone spacing.
89+ /// Create a `TokenTree::Token` with alone spacing.
9090 pub fn token_alone ( kind : TokenKind , span : Span ) -> TokenTree {
9191 TokenTree :: Token ( Token :: new ( kind, span) , Spacing :: Alone )
9292 }
9393
94- // Create a `TokenTree::Token` with joint spacing.
94+ /// Create a `TokenTree::Token` with joint spacing.
9595 pub fn token_joint ( kind : TokenKind , span : Span ) -> TokenTree {
9696 TokenTree :: Token ( Token :: new ( kind, span) , Spacing :: Joint )
9797 }
@@ -413,17 +413,17 @@ impl TokenStream {
413413 TokenStream ( Lrc :: new ( self . 0 . iter ( ) . enumerate ( ) . map ( |( i, tree) | f ( i, tree) ) . collect ( ) ) )
414414 }
415415
416- // Create a token stream containing a single token with alone spacing.
416+ /// Create a token stream containing a single token with alone spacing.
417417 pub fn token_alone ( kind : TokenKind , span : Span ) -> TokenStream {
418418 TokenStream :: new ( vec ! [ TokenTree :: token_alone( kind, span) ] )
419419 }
420420
421- // Create a token stream containing a single token with joint spacing.
421+ /// Create a token stream containing a single token with joint spacing.
422422 pub fn token_joint ( kind : TokenKind , span : Span ) -> TokenStream {
423423 TokenStream :: new ( vec ! [ TokenTree :: token_joint( kind, span) ] )
424424 }
425425
426- // Create a token stream containing a single `Delimited`.
426+ /// Create a token stream containing a single `Delimited`.
427427 pub fn delimited ( span : DelimSpan , delim : Delimiter , tts : TokenStream ) -> TokenStream {
428428 TokenStream :: new ( vec ! [ TokenTree :: Delimited ( span, delim, tts) ] )
429429 }
@@ -522,8 +522,8 @@ impl TokenStream {
522522 }
523523 }
524524
525- // Push `tt` onto the end of the stream, possibly gluing it to the last
526- // token. Uses `make_mut` to maximize efficiency.
525+ /// Push `tt` onto the end of the stream, possibly gluing it to the last
526+ /// token. Uses `make_mut` to maximize efficiency.
527527 pub fn push_tree ( & mut self , tt : TokenTree ) {
528528 let vec_mut = Lrc :: make_mut ( & mut self . 0 ) ;
529529
@@ -534,9 +534,9 @@ impl TokenStream {
534534 }
535535 }
536536
537- // Push `stream` onto the end of the stream, possibly gluing the first
538- // token tree to the last token. (No other token trees will be glued.)
539- // Uses `make_mut` to maximize efficiency.
537+ /// Push `stream` onto the end of the stream, possibly gluing the first
538+ /// token tree to the last token. (No other token trees will be glued.)
539+ /// Uses `make_mut` to maximize efficiency.
540540 pub fn push_stream ( & mut self , stream : TokenStream ) {
541541 let vec_mut = Lrc :: make_mut ( & mut self . 0 ) ;
542542
0 commit comments