ruby-changes:71339
From: Thierry <ko1@a...>
Date: Mon, 7 Mar 2022 21:02:13 +0900 (JST)
Subject: [ruby-changes:71339] 9cbebdcb74 (master): [DOC] Fix documentation typo for Process#clock_gettime
https://git.ruby-lang.org/ruby.git/commit/?id=9cbebdcb74 From 9cbebdcb74b98a012be72c8cc6b64099312eb432 Mon Sep 17 00:00:00 2001 From: Thierry Joyal <thierry.joyal@g...> Date: Mon, 7 Mar 2022 09:37:21 +0000 Subject: [DOC] Fix documentation typo for Process#clock_gettime Fixes [Misc #18610] --- process.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/process.c b/process.c index 88cf98c971..2282fc92dc 100644 --- a/process.c +++ b/process.c @@ -8331,7 +8331,7 @@ ruby_real_ms_time(void) https://github.com/ruby/ruby/blob/trunk/process.c#L8331 * The underlying function, clock_gettime(), returns a number of nanoseconds. * Float object (IEEE 754 double) is not enough to represent * the return value for CLOCK_REALTIME. - * If the exact nanoseconds value is required, use +:nanoseconds+ as the +unit+. + * If the exact nanoseconds value is required, use +:nanosecond+ as the +unit+. * * The origin (zero) of the returned value varies. * For example, system start up time, process start up time, the Epoch, etc. -- cgit v1.2.1 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/