diff --git a/.README/rules/check-types.md b/.README/rules/check-types.md index 65496ffbe..7ff78e9b1 100644 --- a/.README/rules/check-types.md +++ b/.README/rules/check-types.md @@ -82,10 +82,12 @@ footprint is a tiny little bit smaller, and the [GC](https://en.wikipedia.org/wiki/Garbage_collection_(computer_science)) has less work to do. -So in a sense, there two types of strings in Javascript; `{string}` literals, -also called primitives and `{String}` Objects. We use the primitives because -it's easier to write and uses less memory. `{String}` and `{string}` are -technically both valid, but they are not the same. +So in a sense, there are two types of strings in Javascript: +1. `{string}` literals, also called primitives +2. `{String}` Objects. + +We use the primitives because it's easier to write and uses less memory. +`{String}` and `{string}` are technically both valid, but they are not the same. ```js new String('lard') // String {0: "l", 1: "a", 2: "r", 3: "d", length: 4} diff --git a/README.md b/README.md index 860109549..608924311 100644 --- a/README.md +++ b/README.md @@ -4770,10 +4770,12 @@ footprint is a tiny little bit smaller, and the [GC](https://en.wikipedia.org/wiki/Garbage_collection_(computer_science)) has less work to do. -So in a sense, there two types of strings in Javascript; `{string}` literals, -also called primitives and `{String}` Objects. We use the primitives because -it's easier to write and uses less memory. `{String}` and `{string}` are -technically both valid, but they are not the same. +So in a sense, there are two types of strings in Javascript: +1. `{string}` literals, also called primitives +2. `{String}` Objects. + +We use the primitives because it's easier to write and uses less memory. +`{String}` and `{string}` are technically both valid, but they are not the same. ```js new String('lard') // String {0: "l", 1: "a", 2: "r", 3: "d", length: 4}