Skip to content

Commit 9c693ad

Browse files
committed
Clarify a comment.
1 parent 59d1991 commit 9c693ad

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

compiler/rustc_expand/src/proc_macro_server.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -309,10 +309,10 @@ impl ToInternal<SmallVec<[tokenstream::TokenTree; 2]>>
309309
use rustc_ast::token::*;
310310

311311
// The code below is conservative, using `token_alone`/`Spacing::Alone`
312-
// in most places. When the resulting code is pretty-printed by
313-
// `print_tts` it ends up with spaces between most tokens, which is
314-
// safe but ugly. It's hard in general to do better when working at the
315-
// token level.
312+
// in most places. It's hard in general to do better when working at
313+
// the token level. When the resulting code is pretty-printed by
314+
// `print_tts` the `space_between` function helps avoid a lot of
315+
// unnecessary whitespace, so the results aren't too bad.
316316
let (tree, rustc) = self;
317317
match tree {
318318
TokenTree::Punct(Punct { ch, joint, span }) => {

0 commit comments

Comments
 (0)