diff options
author | Yusuke Endoh <mame@ruby-lang.org> | 2019-08-07 03:12:10 +0900 |
---|---|---|
committer | Yusuke Endoh <mame@ruby-lang.org> | 2019-08-07 03:12:49 +0900 |
commit | ef8c5161b4422783c8f736a099d97a9c868fe287 (patch) | |
tree | f81cce4d405bfc0f1ea2c95386dde2b4f4b711e0 /ext | |
parent | 2d6b92c5f6b6343f34bb363604339f4bd7b951ac (diff) | |
download | ruby-ef8c5161b4422783c8f736a099d97a9c868fe287.tar.gz |
ext/ripper/lib/ripper/lexer.rb: fix a wrong delegation
The target method name is a typo.
Diffstat (limited to 'ext')
-rw-r--r-- | ext/ripper/lib/ripper/lexer.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/ripper/lib/ripper/lexer.rb b/ext/ripper/lib/ripper/lexer.rb index 05af8445fc..8aad81b74b 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 |