From b5c0dc39984b6953cabefaaace0f5b8f60c5df8c Mon Sep 17 00:00:00 2001 From: Dumitru Deveatii Date: Mon, 28 Jan 2019 17:58:45 +0200 Subject: [PATCH] Comments - fixed bad sample --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 0e45119..0c9288c 100644 --- a/README.md +++ b/README.md @@ -251,13 +251,13 @@ Comments are an apology, not a requirement. Good code mostly documents itself. ```ts // Check if subscription is active. -if (subscription.endDate < Date.now) { } +if (subscription.endDate > Date.now) { } ``` **Good:** ```ts -const isSubscriptionActive = subscription.endDate < Date.now; +const isSubscriptionActive = subscription.endDate > Date.now; if (isSubscriptionActive) { /* ... */ } ```