From 065361bfdcbf0a975fe4fef8c0cb8b4e35db3cbf Mon Sep 17 00:00:00 2001 From: Deepi Garg <48362243+deepigarg@users.noreply.github.com> Date: Sat, 28 Mar 2020 22:45:52 +0530 Subject: [PATCH] Update word.rb --- lib/parfait/word.rb | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) 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