diff --git a/docs/ReadingAndWritingImageFiles.rst b/docs/ReadingAndWritingImageFiles.rst index 31f648983d..33ee98b00e 100644 --- a/docs/ReadingAndWritingImageFiles.rst +++ b/docs/ReadingAndWritingImageFiles.rst @@ -1462,7 +1462,7 @@ exception. If ``read(c,n)`` hits the end of the file after reading throw Iex::InputExc ("Unexpected end of file."); } - return feof (_file); + return !feof (_file); } ``tellg()`` returns the current reading position, in bytes, from the