diff --git a/ext/tk/sample/tktextio.rb b/ext/tk/sample/tktextio.rb index 5b6bb9cc5f..cc0326ed20 100644 --- a/ext/tk/sample/tktextio.rb +++ b/ext/tk/sample/tktextio.rb @@ -836,7 +836,7 @@ class TkTextIO < TkText self end - def trancate(len) + def truncate(len) delete("1.0 + #{len} char", :end) 0 end