summaryrefslogtreecommitdiff
path: root/file.c
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-12-21 09:20:15 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-12-21 09:20:15 +0000
commit35d8b850a3eeb51a14feec0ce0e265770ad35458 (patch)
treefccfc61727e07a9b2bfd4102ac52ca6af6a0e30e /file.c
parentdc2f377889e86a1f11a7a7f68eed47e49d567c3a (diff)
(rb_f_test): fix document. [ruby-dev:28087]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@9731 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'file.c')
-rw-r--r--file.c12
1 files changed, 11 insertions, 1 deletions
diff --git a/file.c b/file.c
index 28b8834bc2..d97948db3c 100644
--- a/file.c
+++ b/file.c
@@ -1398,6 +1398,16 @@ test_sticky(obj, fname)
* File.identical?(file_1, file_2) => true or false
*
* Returns <code>true</code> if the named files are identical.
+ *
+ * open("a", "w") {}
+ * p File.identical?("a", "a") #=> true
+ * p File.identical?("a", "./a") #=> true
+ * File.link("a", "b")
+ * p File.identical?("a", "b") #=> true
+ * File.symlink("a", "c")
+ * p File.identical?("a", "c") #=> true
+ * open("d", "w") {}
+ * p File.identical?("a", "d") #=> false
*/
static VALUE
@@ -3265,7 +3275,7 @@ test_check(n, argc, argv)
*
* Tests that take two files:
*
- * ?- | boolean | True if file1 is a hard link to file2
+ * ?- | boolean | True if file1 and file2 are identical
* ?= | boolean | True if the modification times of file1
* | | and file2 are equal
* ?< | boolean | True if the modification time of file1