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) { /* ... */ } ```