diff options
Diffstat (limited to 'grammar/src')
-rw-r--r-- | grammar/src/label.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/grammar/src/label.rs b/grammar/src/label.rs index e3f3422..fd626cd 100644 --- a/grammar/src/label.rs +++ b/grammar/src/label.rs @@ -143,10 +143,10 @@ impl GrammarLabel { self.end = Some(end); } - /// Remove the ending boundary. + /// Set the end according to an option directly. #[inline] - pub fn open_end(&mut self) { - self.end = None; + pub fn set_end_option(&mut self, end: Option<usize>) { + self.end = end; } /// Return a string description with the help of the associated |