зеркало из https://github.com/github/bert.git
Merge pull request #17 from github/radville/prepare-frozen-strings
Prepare for frozen strings: mark strings as mutable to allow us to set --enable-frozen-string-literal globally
This commit is contained in:
Коммит
f3b2e729cb
|
@ -31,7 +31,7 @@ module BERT
|
||||||
|
|
||||||
def initialize(ins)
|
def initialize(ins)
|
||||||
@in = ins
|
@in = ins
|
||||||
@peeked = ""
|
@peeked = +""
|
||||||
end
|
end
|
||||||
|
|
||||||
def read_any
|
def read_any
|
||||||
|
@ -66,7 +66,7 @@ module BERT
|
||||||
length = 0
|
length = 0
|
||||||
else
|
else
|
||||||
result = @peeked
|
result = @peeked
|
||||||
@peeked = ''
|
@peeked = +''
|
||||||
length -= result.length
|
length -= result.length
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Загрузка…
Ссылка в новой задаче