From 748fa9fd117ca15d6ee7465cbf5febe058c7bbd8 Mon Sep 17 00:00:00 2001 From: Omer Wazir Date: Wed, 11 Feb 2015 23:13:54 -0700 Subject: [PATCH 1/3] doc: Fix grammar so sentence makes sense Just added 'then it' because the phrasing did not seem correct. --- doc/api/timers.markdown | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/api/timers.markdown b/doc/api/timers.markdown index c99eadba7cf7a3..c0560fe77b3e69 100644 --- a/doc/api/timers.markdown +++ b/doc/api/timers.markdown @@ -34,7 +34,7 @@ Stops an interval from triggering. The opaque value returned by `setTimeout` and `setInterval` also has the method `timer.unref()` which will allow you to create a timer that is active but if -it is the only item left in the event loop won't keep the program running. +it is the only item left in the event loop then it won't keep the program running. If the timer is already `unref`d calling `unref` again will have no effect. In the case of `setTimeout` when you `unref` you create a separate timer that From 8069a57e2e9b31f1c31d75404c19c61766462e07 Mon Sep 17 00:00:00 2001 From: Omer Wazir Date: Thu, 12 Feb 2015 10:01:43 -0700 Subject: [PATCH 2/3] doc: Changing 'then it' to just 'it' Using just 'it' makes enough sense. --- doc/api/timers.markdown | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/api/timers.markdown b/doc/api/timers.markdown index c0560fe77b3e69..0906da5e45cdb3 100644 --- a/doc/api/timers.markdown +++ b/doc/api/timers.markdown @@ -34,7 +34,7 @@ Stops an interval from triggering. The opaque value returned by `setTimeout` and `setInterval` also has the method `timer.unref()` which will allow you to create a timer that is active but if -it is the only item left in the event loop then it won't keep the program running. +it is the only item left in the event loop it won't keep the program running. If the timer is already `unref`d calling `unref` again will have no effect. In the case of `setTimeout` when you `unref` you create a separate timer that From 575a63f8fbbf0db4e210973cce58fc785b43dbf5 Mon Sep 17 00:00:00 2001 From: Omer Wazir Date: Thu, 12 Feb 2015 10:10:03 -0700 Subject: [PATCH 3/3] doc: Added a comma I forgot to replace "then" with a comma. --- doc/api/timers.markdown | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/api/timers.markdown b/doc/api/timers.markdown index 0906da5e45cdb3..201fb04ec2ad4b 100644 --- a/doc/api/timers.markdown +++ b/doc/api/timers.markdown @@ -34,7 +34,7 @@ Stops an interval from triggering. The opaque value returned by `setTimeout` and `setInterval` also has the method `timer.unref()` which will allow you to create a timer that is active but if -it is the only item left in the event loop it won't keep the program running. +it is the only item left in the event loop, it won't keep the program running. If the timer is already `unref`d calling `unref` again will have no effect. In the case of `setTimeout` when you `unref` you create a separate timer that