summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--io.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/io.c b/io.c
index d59fbc5472..59b47edb55 100644
--- a/io.c
+++ b/io.c
@@ -912,11 +912,13 @@ rb_io_set_sync(io, mode)
* ios.fsync => 0 or nil
*
* Immediately writes all buffered data in <em>ios</em> to disk.
- * Returns <code>nil</code> if the underlying operating system does not
- * support <em>fsync(2)</em>. Note that <code>fsync</code> differs from
+ * Note that <code>fsync</code> differs from
* using <code>IO#sync=</code>. The latter ensures that data is flushed
* from Ruby's buffers, but doesn't not guarantee that the underlying
* operating system actually writes it to disk.
+ *
+ * <code>NotImplementedError</code> is raised
+ * if the underlying operating system does not support <em>fsync(2)</em>.
*/
static VALUE