Skip to content

Commit 3be258c

Browse files
chore: make sentence smooth (#11407)
* chore: make sentence smooth * chore: everything typo * chore: its * feat: e.g. * chore: a => an; remove repeated `to` * Update offsets.js * Update generateRules.js --------- Co-authored-by: Adam Wathan <[email protected]>
1 parent ef2ebb2 commit 3be258c

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

src/lib/generateRules.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ function* candidatePermutations(candidate) {
4545
let bracketIdx = candidate.indexOf('[')
4646

4747
// If character before `[` isn't a dash or a slash, this isn't a dynamic class
48-
// eg. string[]
48+
// e.g. string[]
4949
if (candidate[bracketIdx - 1] === '-') {
5050
dashIdx = bracketIdx - 1
5151
} else if (candidate[bracketIdx - 1] === '/') {
@@ -455,9 +455,9 @@ function isParsableNode(node) {
455455
}
456456

457457
function isParsableCssValue(property, value) {
458-
// We don't want to to treat [https://example.com] as a custom property
458+
// We don't want to treat [https://example.com] as a custom property
459459
// Even though, according to the CSS grammar, it's a totally valid CSS declaration
460-
// So we short-circuit here by checking if the custom property looks like a url
460+
// So we short-circuit here by checking if the custom property looks like a URL
461461
if (looksLikeUri(`${property}:${value}`)) {
462462
return false
463463
}

src/lib/offsets.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ import { remapBitfield } from './remap-bitfield.js'
2323
* @property {bigint} arbitrary 0n if false, 1n if true
2424
* @property {bigint} variants Dynamic size. 1 bit per registered variant. 0n means no variants
2525
* @property {bigint} parallelIndex Rule index for the parallel variant. 0 if not applicable.
26-
* @property {bigint} index Index of the rule / utility in it's given *parent* layer. Monotonically increasing.
26+
* @property {bigint} index Index of the rule / utility in its given *parent* layer. Monotonically increasing.
2727
* @property {VariantOption[]} options Some information on how we can sort arbitrary variants
2828
*/
2929

@@ -302,7 +302,7 @@ export class Offsets {
302302
let mapping = this.recalculateVariantOffsets()
303303

304304
// No arbitrary variants? Nothing to do.
305-
// Everyhing already in order? Nothing to do.
305+
// Everything already in order? Nothing to do.
306306
if (mapping.length === 0) {
307307
return list
308308
}
@@ -354,7 +354,7 @@ function max(nums) {
354354
* Using `.sort()` without a custom compare function is faster
355355
* But you can only use that if you're sorting an array of
356356
* only strings. If you're sorting strings inside objects
357-
* or arrays, you need must use a custom compare function.
357+
* or arrays, you need to use a custom compare function.
358358
*
359359
* @param {string} a
360360
* @param {string} b

0 commit comments

Comments
 (0)