Skip to content

Commit e307677

Browse files
committed
Correct typos
1 parent 66aa8b9 commit e307677

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ module Fun include Raabro
2929

3030
def pstart(i); rex(nil, i, /\(\s*/); end
3131
def pend(i); rex(nil, i, /\)\s*/); end
32-
# parenthese start and end, including trailing white space
32+
# parentheses start and end, including trailing white space
3333

3434
def comma(i); rex(nil, i, /,\s*/); end
3535
# a comma, including trailing white space
@@ -246,7 +246,7 @@ One can reparse with `error: true` and receive an error array with the parse err
246246
```ruby
247247
err = Sample::Fun.parse('f(a, b', error: true)
248248
# yields:
249-
# [ line, column, offest, error_message, error_visual ]
249+
# [ line, column, offset, error_message, error_visual ]
250250
[ 1, 4, 3, 'parsing failed .../:exp/:fun/:arg', "f(a, b\n ^---" ]
251251
```
252252

doc/test.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ module Fun include Raabro
1616

1717
def pstart(i); rex(nil, i, /\(\s*/); end
1818
def pend(i); rex(nil, i, /\)\s*/); end
19-
# parenthese start and end, including trailing white space
19+
# parentheses start and end, including trailing white space
2020

2121
def comma(i); rex(nil, i, /,\s*/); end
2222
# a comma, including trailing white space

lib/raabro.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,7 @@ def rex(name, input, regex_or_string)
265265
def _quantify(parser)
266266

267267
return nil if parser.is_a?(Symbol) && respond_to?(parser)
268-
# so that :plus and co can be overriden
268+
# so that :plus and co can be overridden
269269

270270
case parser
271271
when '?', :q, :qmark then [ 0, 1 ]

spec/spec_helper.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,9 +63,9 @@ def plus(i); rex(:plus, i, /\+\s*/); end
6363
def minus(i); rex(:minus, i, /-\s*/); end
6464

6565
def addition(i); seq(:addition, i, :number, :plus, :op_or_num); end
66-
def substraction(i); seq(:substraction, i, :number, :minus, :op_or_num); end
66+
def subtraction(i); seq(:subtraction, i, :number, :minus, :op_or_num); end
6767

68-
def op_or_num(i); alt(nil, i, :addition, :substraction, :number); end
68+
def op_or_num(i); alt(nil, i, :addition, :subtraction, :number); end
6969
end
7070

7171

0 commit comments

Comments
 (0)