diff --git a/lib/parfait/word.rb b/lib/parfait/word.rb index 39b01bf6..2bb21dbe 100644 --- a/lib/parfait/word.rb +++ b/lib/parfait/word.rb @@ -192,24 +192,24 @@ module Parfait def insert(index, other) if index<0 - index = self.length()+1+index + index = length+1+index end - cpy = Word.new( self.length()+other.length() ) + cpy = Word.new( length+other.length ) cpy_ind=0 str_ind=0 while ( str_ind