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

ruby-changes:55162

From: nobu <ko1@a...>
Date: Fri, 29 Mar 2019 09:59:38 +0900 (JST)
Subject: [ruby-changes:55162] nobu:r67369 (trunk): process.c: [DOC] fix markups [ci skip]

nobu	2019-03-29 09:59:34 +0900 (Fri, 29 Mar 2019)

  New Revision: 67369

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=67369

  Log:
    process.c: [DOC] fix markups [ci skip]
    
    * process.c (rb_clock_getres): fix code markups, as `+` can not
      include parentheses.

  Modified files:
    trunk/process.c
Index: process.c
===================================================================
--- process.c	(revision 67368)
+++ process.c	(revision 67369)
@@ -7906,7 +7906,7 @@ rb_clock_gettime(int argc, VALUE *argv) https://github.com/ruby/ruby/blob/trunk/process.c#L7906
  *
  *  +clock_id+ can be a symbol as +Process.clock_gettime+.
  *  However the result may not be accurate.
- *  For example, +Process.clock_getres(:GETTIMEOFDAY_BASED_CLOCK_REALTIME)+
+ *  For example, <code>Process.clock_getres(:GETTIMEOFDAY_BASED_CLOCK_REALTIME)</code>
  *  returns 1.0e-06 which means 1 microsecond, but actual resolution can be more coarse.
  *
  *  If the given +clock_id+ is not supported, Errno::EINVAL is raised.
@@ -7923,10 +7923,10 @@ rb_clock_gettime(int argc, VALUE *argv) https://github.com/ruby/ruby/blob/trunk/process.c#L7923
  *  the clock ticks per second for times() function and
  *  CLOCKS_PER_SEC for clock() function.
  *
- *  +Process.clock_getres(:TIMES_BASED_CLOCK_PROCESS_CPUTIME_ID, :hertz)+
+ *  <code>Process.clock_getres(:TIMES_BASED_CLOCK_PROCESS_CPUTIME_ID, :hertz)</code>
  *  returns the clock ticks per second.
  *
- *  +Process.clock_getres(:CLOCK_BASED_CLOCK_PROCESS_CPUTIME_ID, :hertz)+
+ *  <code>Process.clock_getres(:CLOCK_BASED_CLOCK_PROCESS_CPUTIME_ID, :hertz)</code>
  *  returns CLOCKS_PER_SEC.
  *
  *    p Process.clock_getres(Process::CLOCK_MONOTONIC)

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

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