[前][次][番号順一覧][スレッド一覧]

ruby-changes:33919

From: akr <ko1@a...>
Date: Sun, 18 May 2014 17:45:15 +0900 (JST)
Subject: [ruby-changes:33919] akr:r46000 (trunk): [DOC]

akr	2014-05-18 17:45:07 +0900 (Sun, 18 May 2014)

  New Revision: 46000

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=46000

  Log:
    [DOC]

  Modified files:
    trunk/ext/etc/etc.c
Index: ext/etc/etc.c
===================================================================
--- ext/etc/etc.c	(revision 45999)
+++ ext/etc/etc.c	(revision 46000)
@@ -693,7 +693,7 @@ etc_uname(VALUE obj) https://github.com/ruby/ruby/blob/trunk/ext/etc/etc.c#L693
 /*
  * Returns system configuration variable using sysconf().
  *
- * _name_ should be a constant undef <code>Etc</code> which begins with <code>SC_</code>.
+ * _name_ should be a constant under <code>Etc</code> which begins with <code>SC_</code>.
  *
  * The return value is an integer or nil.
  * nil means indefinite limit.  (sysconf() returns -1 but errno is not set.)
@@ -730,7 +730,7 @@ etc_sysconf(VALUE obj, VALUE arg) https://github.com/ruby/ruby/blob/trunk/ext/etc/etc.c#L730
 /*
  * Returns system configuration variable using confstr().
  *
- * _name_ should be a constant undef <code>Etc</code> which begins with <code>CS_</code>.
+ * _name_ should be a constant under <code>Etc</code> which begins with <code>CS_</code>.
  *
  * The return value is a string or nil.
  * nil means no configuration-defined value.  (confstr() returns 0 but errno is not set.)
@@ -777,11 +777,12 @@ etc_confstr(VALUE obj, VALUE arg) https://github.com/ruby/ruby/blob/trunk/ext/etc/etc.c#L777
 /*
  * Returns pathname configuration variable using fpathconf().
  *
- * _name_ should be a constant undef <code>Etc</code> which begins with <code>PC_</code>.
+ * _name_ should be a constant under <code>Etc</code> which begins with <code>PC_</code>.
  *
  * The return value is an integer or nil.
  * nil means indefinite limit.  (fpathconf() returns -1 but errno is not set.)
  *
+ *   require 'etc'
  *   IO.pipe {|r, w|
  *     p w.pathconf(Etc::PC_PIPE_BUF) #=> 4096
  *   }

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]