Fix typos in "1.9/io/console.rb" #518

Closed
wants to merge 1 commit into
from
Jump to file or symbol
Failed to load files and symbols.
+3 −3
Split
@@ -114,21 +114,21 @@ def getch(*)
def winsize
ws = LibC::Winsize.new
if LibC.ioctl(fileno, LibC::TIOCGWINSZ, :pointer, ws.pointer) != 0
- raise SystemCallError.new("ioctl(TOCGWINSZ)", FFI.errno)
+ raise SystemCallError.new("ioctl(TIOCGWINSZ)", FFI.errno)
end
[ ws[:ws_row], ws[:ws_col] ]
end
def winsize=(size)
ws = LibC::Winsize.new
if LibC.ioctl(fileno, LibC::TIOCGWINSZ, :pointer, ws.pointer) != 0
- raise SystemCallError.new("ioctl(TOCGWINSZ)", FFI.errno)
+ raise SystemCallError.new("ioctl(TIOCGWINSZ)", FFI.errno)
end
ws[:ws_row] = size[0]
ws[:ws_col] = size[1]
if LibC.ioctl(fileno, LibC::TIOCSWINSZ, :pointer, ws.pointer) != 0
- raise SystemCallError.new("ioctl(TOCSWINSZ)", FFI.errno)
+ raise SystemCallError.new("ioctl(TIOCSWINSZ)", FFI.errno)
end
end