summaryrefslogtreecommitdiff
path: root/ext/ripper
diff options
context:
space:
mode:
authorYusuke Endoh <mame@ruby-lang.org>2019-08-07 03:12:10 +0900
committerYusuke Endoh <mame@ruby-lang.org>2019-08-07 03:12:49 +0900
commitef8c5161b4422783c8f736a099d97a9c868fe287 (patch)
treef81cce4d405bfc0f1ea2c95386dde2b4f4b711e0 /ext/ripper
parent2d6b92c5f6b6343f34bb363604339f4bd7b951ac (diff)
ext/ripper/lib/ripper/lexer.rb: fix a wrong delegation
The target method name is a typo.
Diffstat (limited to 'ext/ripper')
-rw-r--r--ext/ripper/lib/ripper/lexer.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/ripper/lib/ripper/lexer.rb b/ext/ripper/lib/ripper/lexer.rb
index 05af8445fce..8aad81b74bc 100644
--- a/ext/ripper/lib/ripper/lexer.rb
+++ b/ext/ripper/lib/ripper/lexer.rb
@@ -54,7 +54,7 @@ class Ripper
def pretty_print(q) q.text(to_s) end
def ==(i) super or to_int == i end
def &(i) self.class.new(to_int & i) end
- def |(i) self.class.new(to_int & i) end
+ def |(i) self.class.new(to_int | i) end
def allbits?(i) to_int.allbits?(i) end
def anybits?(i) to_int.anybits?(i) end
def nobits?(i) to_int.nobits?(i) end