diff --git a/ext/etc/etc.c b/ext/etc/etc.c index 64b6fefab7..6e7c278cfa 100644 --- a/ext/etc/etc.c +++ b/ext/etc/etc.c @@ -693,7 +693,7 @@ etc_uname(VALUE obj) /* * Returns system configuration variable using sysconf(). * - * _name_ should be a constant undef Etc which begins with SC_. + * _name_ should be a constant under Etc which begins with SC_. * * 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) /* * Returns system configuration variable using confstr(). * - * _name_ should be a constant undef Etc which begins with CS_. + * _name_ should be a constant under Etc which begins with CS_. * * 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) /* * Returns pathname configuration variable using fpathconf(). * - * _name_ should be a constant undef Etc which begins with PC_. + * _name_ should be a constant under Etc which begins with PC_. * * 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 * }