From 152d684005232a3c70bccb2c7631bea78dd06855 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stefan=20Feje=C5=A1?= Date: Tue, 19 Dec 2017 22:22:15 +0100 Subject: [PATCH] fix typo again --- README.md | 2 +- docs/index.html | 2 +- snippets/isPrime.md | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 15d49d34e..39f165be1 100644 --- a/README.md +++ b/README.md @@ -1219,7 +1219,7 @@ const isEven = num => num % 2 === 0; ### isPrime -Checks if the provided intiger is prime number. +Checks if the provided integer is a prime number. Returns `false` if the provided number has positive divisors other than 1 and itself or if the number itself is less than 2. diff --git a/docs/index.html b/docs/index.html index 62226119f..7648b07e7 100644 --- a/docs/index.html +++ b/docs/index.html @@ -763,7 +763,7 @@ Returns true if the number is even, false if the numbe // isEven(3) -> false

isPrime

-

Checks if the provided intiger is prime number.

+

Checks if the provided integer is a prime number.

Returns false if the provided number has positive divisors other than 1 and itself or if the number itself is less than 2.

const isPrime = num =>
   for (var i = 2; i < num; i++) if (num % i == 0) return false;
diff --git a/snippets/isPrime.md b/snippets/isPrime.md
index a03e070f9..b372f057f 100644
--- a/snippets/isPrime.md
+++ b/snippets/isPrime.md
@@ -1,6 +1,6 @@
 ### isPrime
 
-Checks if the provided intiger is prime number.
+Checks if the provided integer is a prime number.
 
 Returns `false` if the provided number has positive divisors other than 1 and itself or if the number itself is less than 2.