From 84be59ff9d6feed21f70c9eb4eb3d75a8f13c24c Mon Sep 17 00:00:00 2001 From: Schneider Date: Mon, 8 Apr 2019 11:21:14 -0300 Subject: [PATCH 1/3] Fixed typos on glossary --- glossary/HTTP-and-HTTPS.md | 2 +- glossary/README.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/glossary/HTTP-and-HTTPS.md b/glossary/HTTP-and-HTTPS.md index 1ac999f02..017a5e6f4 100644 --- a/glossary/HTTP-and-HTTPS.md +++ b/glossary/HTTP-and-HTTPS.md @@ -1,4 +1,4 @@ ### HTTP and HTTPS The HyperText Transfer Protocol (HTTP) is the underlying network protocol that enables transfer of hypermedia documents on the Web, usually between a client and a server. -The HyperText Transfer Protocol Secure (HTTPS) is an encrypted version of the HTTP protocol, that uses SSL to encrypt all data transfered between a client and a server. +The HyperText Transfer Protocol Secure (HTTPS) is an encrypted version of the HTTP protocol, that uses SSL to encrypt all data transferred between a client and a server. diff --git a/glossary/README.md b/glossary/README.md index 48ea86d5e..165a27364 100644 --- a/glossary/README.md +++ b/glossary/README.md @@ -313,7 +313,7 @@ HTML documents are plaintext documents structured with elements, which are surro ### HTTP and HTTPS The HyperText Transfer Protocol (HTTP) is the underlying network protocol that enables transfer of hypermedia documents on the Web, usually between a client and a server. -The HyperText Transfer Protocol Secure (HTTPS) is an encrypted version of the HTTP protocol, that uses SSL to encrypt all data transfered between a client and a server. +The HyperText Transfer Protocol Secure (HTTPS) is an encrypted version of the HTTP protocol, that uses SSL to encrypt all data transferred between a client and a server. ### Integer From 9073aff0f1bb58ec5f0af26bf97bd65194d2f335 Mon Sep 17 00:00:00 2001 From: Schneider Date: Mon, 8 Apr 2019 11:21:59 -0300 Subject: [PATCH 2/3] Fix snippets typos --- snippets/compactWhitespace.md | 2 +- snippets/detectDeviceType.md | 2 +- snippets/uniqueElementsBy.md | 2 +- snippets/uniqueElementsByRight.md | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/snippets/compactWhitespace.md b/snippets/compactWhitespace.md index 575adbf02..f8358235d 100644 --- a/snippets/compactWhitespace.md +++ b/snippets/compactWhitespace.md @@ -2,7 +2,7 @@ Returns a string with whitespaces compacted. -Use `String.prototype.replace()` with a regular expression to replace all occurences of 2 or more whitespace characters with a single space. +Use `String.prototype.replace()` with a regular expression to replace all occurrences of 2 or more whitespace characters with a single space. ```js const compactWhitespace = str => str.replace(/\s{2,}/g, ' '); diff --git a/snippets/detectDeviceType.md b/snippets/detectDeviceType.md index 83fdc4061..71da1349f 100644 --- a/snippets/detectDeviceType.md +++ b/snippets/detectDeviceType.md @@ -1,6 +1,6 @@ ### detectDeviceType -Detects wether the website is being opened in a mobile device or a desktop/laptop. +Detects weather the website is being opened in a mobile device or a desktop/laptop. Use a regular expression to test the `navigator.userAgent` property to figure out if the device is a mobile device or a desktop/laptop. diff --git a/snippets/uniqueElementsBy.md b/snippets/uniqueElementsBy.md index 3b3b5a41c..c857f8a48 100644 --- a/snippets/uniqueElementsBy.md +++ b/snippets/uniqueElementsBy.md @@ -2,7 +2,7 @@ Returns all unique values of an array, based on a provided comparator function. -Use `Array.prototype.reduce()` and `Array.prototype.some()` for an array containing only the first unique occurence of each value, based on the comparator function, `fn`. +Use `Array.prototype.reduce()` and `Array.prototype.some()` for an array containing only the first unique occurrence of each value, based on the comparator function, `fn`. The comparator function takes two arguments: the values of the two elements being compared. ```js diff --git a/snippets/uniqueElementsByRight.md b/snippets/uniqueElementsByRight.md index 474e62eab..77e5a6299 100644 --- a/snippets/uniqueElementsByRight.md +++ b/snippets/uniqueElementsByRight.md @@ -2,7 +2,7 @@ Returns all unique values of an array, based on a provided comparator function. -Use `Array.prototype.reduce()` and `Array.prototype.some()` for an array containing only the last unique occurence of each value, based on the comparator function, `fn`. +Use `Array.prototype.reduce()` and `Array.prototype.some()` for an array containing only the last unique occurrence of each value, based on the comparator function, `fn`. The comparator function takes two arguments: the values of the two elements being compared. ```js From f3a7fc88c5febf88d5b164e819fda89019e3d119 Mon Sep 17 00:00:00 2001 From: Lucas Gabriel Schneider Date: Mon, 8 Apr 2019 11:25:31 -0300 Subject: [PATCH 3/3] Fixing bot error --- snippets/detectDeviceType.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/snippets/detectDeviceType.md b/snippets/detectDeviceType.md index 71da1349f..83fdc4061 100644 --- a/snippets/detectDeviceType.md +++ b/snippets/detectDeviceType.md @@ -1,6 +1,6 @@ ### detectDeviceType -Detects weather the website is being opened in a mobile device or a desktop/laptop. +Detects wether the website is being opened in a mobile device or a desktop/laptop. Use a regular expression to test the `navigator.userAgent` property to figure out if the device is a mobile device or a desktop/laptop.