Rename `TokenStream::new` argument.

`tts` is a better name than `streams` for a `Vec<TokenTree>`.
This commit is contained in:
Nicholas Nethercote 2024-06-27 10:49:12 +10:00
parent f852568fa6
commit 0cfd2473be
1 changed files with 2 additions and 2 deletions

View File

@ -400,8 +400,8 @@ impl PartialEq<TokenStream> for TokenStream {
}
impl TokenStream {
pub fn new(streams: Vec<TokenTree>) -> TokenStream {
TokenStream(Lrc::new(streams))
pub fn new(tts: Vec<TokenTree>) -> TokenStream {
TokenStream(Lrc::new(tts))
}
pub fn is_empty(&self) -> bool {