summaryrefslogtreecommitdiff
path: root/file.c
diff options
context:
space:
mode:
authorPeter Zhu <[email protected]>2024-01-07 14:08:50 -0500
committerPeter Zhu <[email protected]>2024-01-08 11:30:29 -0500
commit85a7da742a81d87322878a7f66c44b16c7cb9b0b (patch)
treec5171b05199180ff0c0ed2c59c87cf9f0967cabf /file.c
parentd1d50a050583da978fcf87b41ddc807bf93ede9e (diff)
[DOC] Escape File in documentation
Diffstat (limited to 'file.c')
-rw-r--r--file.c30
1 files changed, 15 insertions, 15 deletions
diff --git a/file.c b/file.c
index 17df41f4c0..6ca65fb732 100644
--- a/file.c
+++ b/file.c
@@ -6608,7 +6608,7 @@ const char ruby_null_device[] =
*
* - <tt>'r'</tt>:
*
- * - File is not initially truncated:
+ * - \File is not initially truncated:
*
* f = File.new('t.txt') # => #<File:t.txt>
* f.size == 0 # => false
@@ -6617,7 +6617,7 @@ const char ruby_null_device[] =
*
* f.pos # => 0
*
- * - File may be read anywhere; see IO#rewind, IO#pos=, IO#seek:
+ * - \File may be read anywhere; see IO#rewind, IO#pos=, IO#seek:
*
* f.readline # => "First line\n"
* f.readline # => "Second line\n"
@@ -6637,7 +6637,7 @@ const char ruby_null_device[] =
*
* - <tt>'w'</tt>:
*
- * - File is initially truncated:
+ * - \File is initially truncated:
*
* path = 't.tmp'
* File.write(path, text)
@@ -6648,7 +6648,7 @@ const char ruby_null_device[] =
*
* f.pos # => 0
*
- * - File may be written anywhere (even past end-of-file);
+ * - \File may be written anywhere (even past end-of-file);
* see IO#rewind, IO#pos=, IO#seek:
*
* f.write('foo')
@@ -6691,7 +6691,7 @@ const char ruby_null_device[] =
*
* - <tt>'a'</tt>:
*
- * - File is not initially truncated:
+ * - \File is not initially truncated:
*
* path = 't.tmp'
* File.write(path, 'foo')
@@ -6702,7 +6702,7 @@ const char ruby_null_device[] =
*
* f.pos # => 0
*
- * - File may be written only at end-of-file;
+ * - \File may be written only at end-of-file;
* IO#rewind, IO#pos=, IO#seek do not affect writing:
*
* f.write('bar')
@@ -6723,7 +6723,7 @@ const char ruby_null_device[] =
*
* - <tt>'r+'</tt>:
*
- * - File is not initially truncated:
+ * - \File is not initially truncated:
*
* path = 't.tmp'
* File.write(path, text)
@@ -6734,7 +6734,7 @@ const char ruby_null_device[] =
*
* f.pos # => 0
*
- * - File may be read or written anywhere (even past end-of-file);
+ * - \File may be read or written anywhere (even past end-of-file);
* see IO#rewind, IO#pos=, IO#seek:
*
* f.readline # => "First line\n"
@@ -6779,7 +6779,7 @@ const char ruby_null_device[] =
*
* - <tt>'a+'</tt>:
*
- * - File is not initially truncated:
+ * - \File is not initially truncated:
*
* path = 't.tmp'
* File.write(path, 'foo')
@@ -6790,7 +6790,7 @@ const char ruby_null_device[] =
*
* f.pos # => 0
*
- * - File may be written only at end-of-file;
+ * - \File may be written only at end-of-file;
* IO#rewind, IO#pos=, IO#seek do not affect writing:
*
* f.write('bar')
@@ -6805,7 +6805,7 @@ const char ruby_null_device[] =
* f.flush
* File.read(path) # => "foobarbazbat"
*
- * - File may be read anywhere; see IO#rewind, IO#pos=, IO#seek:
+ * - \File may be read anywhere; see IO#rewind, IO#pos=, IO#seek:
*
* f.rewind
* f.read # => "foobarbazbat"
@@ -6830,7 +6830,7 @@ const char ruby_null_device[] =
* f = File.new(path, 'w')
* f.pos # => 0
*
- * - File may be written anywhere (even past end-of-file);
+ * - \File may be written anywhere (even past end-of-file);
* see IO#rewind, IO#pos=, IO#seek:
*
* f.write('foo')
@@ -6907,7 +6907,7 @@ const char ruby_null_device[] =
* f = File.new(path, 'w+')
* f.pos # => 0
*
- * - File may be written anywhere (even past end-of-file);
+ * - \File may be written anywhere (even past end-of-file);
* see IO#rewind, IO#pos=, IO#seek:
*
* f.write('foo')
@@ -6944,7 +6944,7 @@ const char ruby_null_device[] =
* File.read(path) # => "bazbam\u0000\u0000bah"
* f.pos # => 11
*
- * - File may be read anywhere (even past end-of-file);
+ * - \File may be read anywhere (even past end-of-file);
* see IO#rewind, IO#pos=, IO#seek:
*
* f.rewind
@@ -6985,7 +6985,7 @@ const char ruby_null_device[] =
* f.flush
* File.read(path) # => "foobarbaz"
*
- * - File may be read anywhere (even past end-of-file);
+ * - \File may be read anywhere (even past end-of-file);
* see IO#rewind, IO#pos=, IO#seek:
*
* f.rewind