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

ruby-changes:35259

From: akr <ko1@a...>
Date: Sun, 31 Aug 2014 16:59:22 +0900 (JST)
Subject: [ruby-changes:35259] akr:r47341 (trunk): * lib/benchmark.rb: Fix a syntax error.

akr	2014-08-31 16:59:12 +0900 (Sun, 31 Aug 2014)

  New Revision: 47341

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

  Log:
    * lib/benchmark.rb: Fix a syntax error.

  Modified files:
    trunk/ChangeLog
    trunk/lib/benchmark.rb
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 47340)
+++ ChangeLog	(revision 47341)
@@ -1,3 +1,7 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Sun Aug 31 16:58:49 2014  Tanaka Akira  <akr@f...>
+
+	* lib/benchmark.rb: Fix a syntax error.
+
 Sun Aug 31 08:46:44 2014  Eric Wong  <e@8...>
 
 	* ext/zlib/zlib.c (gzfile_reset): preserve ZSTREAM_FLAG_GZFILE
Index: lib/benchmark.rb
===================================================================
--- lib/benchmark.rb	(revision 47340)
+++ lib/benchmark.rb	(revision 47341)
@@ -272,8 +272,8 @@ module Benchmark https://github.com/ruby/ruby/blob/trunk/lib/benchmark.rb#L272
 
   # :stopdoc:
   case
-  when defined?(Process::CLOCK_MONOTONIC_RAW) and
-      (Process.clock_gettime(Process::CLOCK_MONOTONIC_RAW) rescue false)
+  when (defined?(Process::CLOCK_MONOTONIC_RAW) and
+      (Process.clock_gettime(Process::CLOCK_MONOTONIC_RAW) rescue false))
     BENCHMARK_CLOCK = Process::CLOCK_MONOTONIC_RAW
   when defined?(Process::CLOCK_MONOTONIC)
     BENCHMARK_CLOCK = Process::CLOCK_MONOTONIC

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

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