From 0de9a6ed2149c26648b37dba647605c182c4fc66 Mon Sep 17 00:00:00 2001 From: claudiob Date: Wed, 17 Dec 2014 12:20:14 -0800 Subject: Fix docs for AS::Notifications::Event#duration Stems from comments by @zzak on e07f3dd: * https://github.com/rails/docrails/commit/e07f3ddcac394d2a8dc23fc571318b7e8c2497b1#commitcomment-9015634 * https://github.com/rails/docrails/commit/e07f3ddcac394d2a8dc23fc571318b7e8c2497b1#commitcomment-9015639 [ci skip] --- activesupport/lib/active_support/notifications/instrumenter.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/activesupport/lib/active_support/notifications/instrumenter.rb b/activesupport/lib/active_support/notifications/instrumenter.rb index 68c553059f..64cb99d2e2 100644 --- a/activesupport/lib/active_support/notifications/instrumenter.rb +++ b/activesupport/lib/active_support/notifications/instrumenter.rb @@ -57,8 +57,8 @@ module ActiveSupport @duration = nil end - # Returns the difference in milliseconds between the moments when the - # execution of the instrumented event started and when it ended. + # Returns the difference in milliseconds between when the execution of the + # event started and when it ended. # # ActiveSupport::Notifications.subscribe('wait') do |*args| # @event = ActiveSupport::Notifications::Event.new(*args) -- cgit v1.2.3