Skip to content

Commit 77ae724

Browse files
authored
Fix typos (#11805)
1 parent 4c34b2e commit 77ae724

File tree

8 files changed

+17
-17
lines changed

8 files changed

+17
-17
lines changed

integrations/execute.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@ let resolveToolRoot = require('./resolve-tool-root')
55

66
let SHOW_OUTPUT = false
77

8-
let runningProcessess = []
8+
let runningProcesses = []
99

1010
afterEach(() => {
11-
runningProcessess.splice(0).forEach((runningProcess) => runningProcess.stop())
11+
runningProcesses.splice(0).forEach((runningProcess) => runningProcess.stop())
1212
})
1313

1414
function debounce(fn, ms) {
@@ -129,7 +129,7 @@ module.exports = function $(command, options = {}) {
129129
})
130130
})
131131

132-
runningProcessess.push(runningProcess)
132+
runningProcesses.push(runningProcess)
133133

134134
return Object.assign(runningProcess, {
135135
stop() {

oxide/crates/core/src/parser.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -417,7 +417,7 @@ impl<'a> Extractor<'a> {
417417
// a flag. E.g.: '<sm'
418418
// | '$' | '^' | '_'
419419

420-
// When the new candidate is preceeded by a `:`, then we want to keep parsing, but
420+
// When the new candidate is preceded by a `:`, then we want to keep parsing, but
421421
// throw away the full candidate because it can not be a valid candidate at the end
422422
// of the day.
423423
if self.cursor.prev == b':' {
@@ -704,11 +704,11 @@ impl<'a> Extractor<'a> {
704704
fn generate_slices(&mut self, candidate: &'a [u8]) -> ParseAction<'a> {
705705
match self.without_surrounding() {
706706
Bracketing::None => ParseAction::SingleCandidate(candidate),
707-
Bracketing::Included(slicable) if slicable == candidate => {
707+
Bracketing::Included(sliceable) if sliceable == candidate => {
708708
ParseAction::SingleCandidate(candidate)
709709
}
710-
Bracketing::Included(slicable) | Bracketing::Wrapped(slicable) => {
711-
let parts = vec![candidate, slicable];
710+
Bracketing::Included(sliceable) | Bracketing::Wrapped(sliceable) => {
711+
let parts = vec![candidate, sliceable];
712712
let parts = parts
713713
.into_iter()
714714
.filter(|v| !v.is_empty())
@@ -947,7 +947,7 @@ mod test {
947947
"available",
948948
"See",
949949
// "what", // what is dropped because it is followed by the fancy: ’
950-
// "s", // s is dropped because it is preceeded by the fancy: ’
950+
// "s", // s is dropped because it is preceded by the fancy: ’
951951
// "new", // Already seen
952952
"in",
953953
"version",

scripts/release-notes.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// Given a version, figure out what the release notes are so that we can use this to pre-fill the
2-
// relase notes on a GitHub release for the current version.
2+
// release notes on a GitHub release for the current version.
33

44
let path = require('path')
55
let fs = require('fs')

src/corePlugins.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -369,7 +369,7 @@ export let variantPlugins = {
369369
let check = normalize(value)
370370
let isRaw = /^\w*\s*\(/.test(check)
371371

372-
// Chrome has a bug where `(condtion1)or(condition2)` is not valid
372+
// Chrome has a bug where `(condition1)or(condition2)` is not valid
373373
// But `(condition1) or (condition2)` is supported.
374374
check = isRaw ? check.replace(/\b(and|or|not)\b/g, ' $1 ') : check
375375

tests/apply-important-selector.test.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,10 @@ it.each`
1616
${':is(.foo) :is(.bar)'} | ${'#app :is(:is(.foo) :is(.bar))'}
1717
${':is(.foo)::before'} | ${'#app :is(.foo)::before'}
1818
${'.foo:before'} | ${'#app :is(.foo):before'}
19-
${'.foo::some-uknown-pseudo'} | ${'#app :is(.foo)::some-uknown-pseudo'}
20-
${'.foo::some-uknown-pseudo:hover'} | ${'#app :is(.foo)::some-uknown-pseudo:hover'}
21-
${'.foo:focus::some-uknown-pseudo:hover'} | ${'#app :is(.foo:focus)::some-uknown-pseudo:hover'}
22-
${'.foo:hover::some-uknown-pseudo:focus'} | ${'#app :is(.foo:hover)::some-uknown-pseudo:focus'}
19+
${'.foo::some-unknown-pseudo'} | ${'#app :is(.foo)::some-unknown-pseudo'}
20+
${'.foo::some-unknown-pseudo:hover'} | ${'#app :is(.foo)::some-unknown-pseudo:hover'}
21+
${'.foo:focus::some-unknown-pseudo:hover'} | ${'#app :is(.foo:focus)::some-unknown-pseudo:hover'}
22+
${'.foo:hover::some-unknown-pseudo:focus'} | ${'#app :is(.foo:hover)::some-unknown-pseudo:focus'}
2323
`('should generate "$after" from "$before"', ({ before, after }) => {
2424
expect(applyImportantSelector(before, '#app')).toEqual(after)
2525
})

tests/color.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ describe('parseColor', () => {
7373
${'initial'}
7474
${'revert'}
7575
${'unset'}
76-
`('should return `null` for unparseable color "$color"', ({ color }) => {
76+
`('should return `null` for unparsable color "$color"', ({ color }) => {
7777
expect(parseColor(color)).toBe(null)
7878
})
7979
})

tests/getSortOrder.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ it('sorts classes deterministically across multiple class lists', () => {
141141
}
142142
})
143143

144-
it('sorts based on first occurence of a candidate / rule', () => {
144+
it('sorts based on first occurrence of a candidate / rule', () => {
145145
let classes = [
146146
['foo-1 foo', 'foo foo-1'],
147147
['bar', 'bar'],

tests/parseAnimationValue.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ describe('iteration count', () => {
134134
['spin 200s 100s infinite linear', 'infinite'],
135135
['spin 200s 100s linear infinite', 'infinite'],
136136
])(
137-
'should be possible to parse "%s" with an iteraction count of "%s"',
137+
'should be possible to parse "%s" with an iteration count of "%s"',
138138
(input, iterationCount) => {
139139
const parsed = parseAnimationValue(input)
140140
expect(parsed).toHaveLength(1)

0 commit comments

Comments
 (0)