aboutsummaryrefslogtreecommitdiff
path: root/crates/libsyntax2/src/grammar/type_params.rs
diff options
context:
space:
mode:
Diffstat (limited to 'crates/libsyntax2/src/grammar/type_params.rs')
-rw-r--r--crates/libsyntax2/src/grammar/type_params.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/libsyntax2/src/grammar/type_params.rs b/crates/libsyntax2/src/grammar/type_params.rs
index a97eeb142..3fb4bd356 100644
--- a/crates/libsyntax2/src/grammar/type_params.rs
+++ b/crates/libsyntax2/src/grammar/type_params.rs
@@ -1,6 +1,6 @@
1use super::*; 1use super::*;
2 2
3pub(super) fn type_param_list(p: &mut Parser) { 3pub(super) fn opt_type_param_list(p: &mut Parser) {
4 if !p.at(L_ANGLE) { 4 if !p.at(L_ANGLE) {
5 return; 5 return;
6 } 6 }
@@ -96,7 +96,7 @@ pub(super) fn bounds_without_colon(p: &mut Parser) {
96// T: Clone + Copy + 'static, 96// T: Clone + Copy + 'static,
97// Iterator::Item: 'a, 97// Iterator::Item: 'a,
98// {} 98// {}
99pub(super) fn where_clause(p: &mut Parser) { 99pub(super) fn opt_where_clause(p: &mut Parser) {
100 if !p.at(WHERE_KW) { 100 if !p.at(WHERE_KW) {
101 return; 101 return;
102 } 102 }