Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

. correct comment

  • Loading branch information...
commit 8a9b52258690592ed5090fe5c526d23c337f0e8b 1 parent 545dbbc
Kaspar Schiess authored
Showing with 3 additions and 3 deletions.
  1. +3 −3 lib/parslet/atoms/base.rb
6 lib/parslet/atoms/base.rb
View
@@ -50,7 +50,7 @@ def parse(io, options={})
# assert: success is true
# If we haven't consumed the input, then the pattern doesn't match. Try
- # to provide a good error message (even asking down below)
+ # to provide a good error message
if !options[:prefix] && source.chars_left > 0
old_pos = source.pos
Parslet::Cause.format(
@@ -73,8 +73,8 @@ def setup_and_apply(source, error_reporter)
end
#---
- # Calls the #try method of this parslet. In case of a parse error, apply
- # leaves the source in the state it was before the attempt.
+ # Calls the #try method of this parslet. Success consumes input, error will
+ # rewind the input.
#+++
def apply(source, context)
old_pos = source.pos
Please sign in to comment.
Something went wrong with that request. Please try again.