mirror of https://github.com/rust-lang/rust.git
Rename `TokenStream::new` argument.
`tts` is a better name than `streams` for a `Vec<TokenTree>`.
This commit is contained in:
parent
f852568fa6
commit
0cfd2473be
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue