Unverified Commit a00268e7 authored by hiro's avatar hiro Committed by GitHub

Fix typos (#35683)

* fix(typo): wolrd -> world

* fix(typo): _lineNumer -> _lineNumber

* fix(typo): Dyanmic -> Dynamic

* fix(typo): mutliple -> multiple

* fix(typo): dyanmic -> dynamic

* fix(typo): speical -> special

* fix(typo): acceptible -> acceptable

* fix(typo): dyanmic -> dynamic

* fix(typo): nonexistant -> nonexistent

* fix(typo): nonexistant -> nonexistent

* fix(typo): nonexistant -> nonexistent

* fix(typo): nonexistant -> nonexistent

* fix(typo): nonexistant -> nonexistent

* fix(typo): nonexistant -> nonexistent

* fix(typo): accesible -> accessible

* fix(typo): explicitely -> explicitly
parent 88a7e584
...@@ -137,37 +137,37 @@ if (require.main === module) { ...@@ -137,37 +137,37 @@ if (require.main === module) {
.option('minLen', { .option('minLen', {
demandOption: false, demandOption: false,
default: MIN_COMPONENT_NAME_LEN, default: MIN_COMPONENT_NAME_LEN,
describe: 'the smallest acceptible component name length', describe: 'the smallest acceptable component name length',
type: 'number', type: 'number',
}) })
.option('maxLen', { .option('maxLen', {
demandOption: false, demandOption: false,
default: MAX_COMPONENT_NAME_LEN, default: MAX_COMPONENT_NAME_LEN,
describe: 'the largest acceptible component name length', describe: 'the largest acceptable component name length',
type: 'number', type: 'number',
}) })
.option('minLen', { .option('minLen', {
demandOption: false, demandOption: false,
default: MIN_COMPONENT_NAME_LEN, default: MIN_COMPONENT_NAME_LEN,
describe: 'the smallest acceptible component name length', describe: 'the smallest acceptable component name length',
type: 'number', type: 'number',
}) })
.option('maxLen', { .option('maxLen', {
demandOption: false, demandOption: false,
default: MAX_COMPONENT_NAME_LEN, default: MAX_COMPONENT_NAME_LEN,
describe: 'the largest acceptible component name length', describe: 'the largest acceptable component name length',
type: 'number', type: 'number',
}) })
.option('minChild', { .option('minChild', {
demandOption: false, demandOption: false,
default: MIN_CHILDREN, default: MIN_CHILDREN,
describe: 'the smallest number of acceptible component children', describe: 'the smallest number of acceptable component children',
type: 'number', type: 'number',
}) })
.option('maxChild', { .option('maxChild', {
demandOption: false, demandOption: false,
default: MAX_CHILDREN, default: MAX_CHILDREN,
describe: 'the largest number of acceptible component children', describe: 'the largest number of acceptable component children',
type: 'number', type: 'number',
}) })
.option('extension', { .option('extension', {
......
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
hasValue: false hasValue: false
} }
Inclusion of hasValue is in case an eslint rule cares about boolean values Inclusion of hasValue is in case an eslint rule cares about boolean values
explicitely assigned to attribute vs the attribute being used as a flag explicitly assigned to attribute vs the attribute being used as a flag
*/ */
class NodeAttributes { class NodeAttributes {
constructor(ASTnode) { constructor(ASTnode) {
......
...@@ -23,8 +23,8 @@ export function getCssError( ...@@ -23,8 +23,8 @@ export function getCssError(
const res = regexCssError.exec(err.message) const res = regexCssError.exec(err.message)
if (res) { if (res) {
const [, _lineNumer, _column, reason] = res const [, _lineNumber, _column, reason] = res
const lineNumber = Math.max(1, parseInt(_lineNumer, 10)) const lineNumber = Math.max(1, parseInt(_lineNumber, 10))
const column = Math.max(1, parseInt(_column, 10)) const column = Math.max(1, parseInt(_column, 10))
return new SimpleWebpackError( return new SimpleWebpackError(
......
...@@ -264,7 +264,7 @@ export default class Document<P = {}> extends Component<DocumentProps & P> { ...@@ -264,7 +264,7 @@ export default class Document<P = {}> extends Component<DocumentProps & P> {
} }
} }
// Add a speical property to the built-in `Document` component so later we can // Add a special property to the built-in `Document` component so later we can
// identify if a user customized `Document` is used or not. // identify if a user customized `Document` is used or not.
;(Document as any).__next_internal_document = ;(Document as any).__next_internal_document =
function InternalFunctionDocument() { function InternalFunctionDocument() {
......
...@@ -1013,7 +1013,7 @@ var Module = (function () { ...@@ -1013,7 +1013,7 @@ var Module = (function () {
} }
function replacePublicSymbol(name, value, numArguments) { function replacePublicSymbol(name, value, numArguments) {
if (!Module.hasOwnProperty(name)) { if (!Module.hasOwnProperty(name)) {
throwInternalError('Replacing nonexistant public symbol') throwInternalError('Replacing nonexistent public symbol')
} }
if ( if (
undefined !== Module[name].overloadTable && undefined !== Module[name].overloadTable &&
......
...@@ -1130,7 +1130,7 @@ var Module = (function () { ...@@ -1130,7 +1130,7 @@ var Module = (function () {
} }
function replacePublicSymbol(name, value, numArguments) { function replacePublicSymbol(name, value, numArguments) {
if (!Module.hasOwnProperty(name)) { if (!Module.hasOwnProperty(name)) {
throwInternalError('Replacing nonexistant public symbol') throwInternalError('Replacing nonexistent public symbol')
} }
if ( if (
undefined !== Module[name].overloadTable && undefined !== Module[name].overloadTable &&
......
...@@ -1024,7 +1024,7 @@ var Module = (function () { ...@@ -1024,7 +1024,7 @@ var Module = (function () {
} }
function replacePublicSymbol(name, value, numArguments) { function replacePublicSymbol(name, value, numArguments) {
if (!Module.hasOwnProperty(name)) { if (!Module.hasOwnProperty(name)) {
throwInternalError('Replacing nonexistant public symbol') throwInternalError('Replacing nonexistent public symbol')
} }
if ( if (
undefined !== Module[name].overloadTable && undefined !== Module[name].overloadTable &&
......
...@@ -1104,7 +1104,7 @@ var Module = (function () { ...@@ -1104,7 +1104,7 @@ var Module = (function () {
} }
function replacePublicSymbol(name, value, numArguments) { function replacePublicSymbol(name, value, numArguments) {
if (!Module.hasOwnProperty(name)) { if (!Module.hasOwnProperty(name)) {
throwInternalError('Replacing nonexistant public symbol') throwInternalError('Replacing nonexistent public symbol')
} }
if ( if (
undefined !== Module[name].overloadTable && undefined !== Module[name].overloadTable &&
......
...@@ -996,7 +996,7 @@ var Module = (function () { ...@@ -996,7 +996,7 @@ var Module = (function () {
} }
function replacePublicSymbol(name, value, numArguments) { function replacePublicSymbol(name, value, numArguments) {
if (!Module.hasOwnProperty(name)) { if (!Module.hasOwnProperty(name)) {
throwInternalError('Replacing nonexistant public symbol') throwInternalError('Replacing nonexistent public symbol')
} }
if ( if (
undefined !== Module[name].overloadTable && undefined !== Module[name].overloadTable &&
......
...@@ -1148,7 +1148,7 @@ var Module = (function () { ...@@ -1148,7 +1148,7 @@ var Module = (function () {
} }
function replacePublicSymbol(name, value, numArguments) { function replacePublicSymbol(name, value, numArguments) {
if (!Module.hasOwnProperty(name)) { if (!Module.hasOwnProperty(name)) {
throwInternalError('Replacing nonexistant public symbol') throwInternalError('Replacing nonexistent public symbol')
} }
if ( if (
undefined !== Module[name].overloadTable && undefined !== Module[name].overloadTable &&
......
...@@ -14,7 +14,7 @@ import { ...@@ -14,7 +14,7 @@ import {
const appDir = join(__dirname, '../') const appDir = join(__dirname, '../')
const outdir = join(appDir, 'out') const outdir = join(appDir, 'out')
describe('Export Dyanmic Pages', () => { describe('Export Dynamic Pages', () => {
let server let server
let port let port
beforeAll(async () => { beforeAll(async () => {
......
...@@ -698,7 +698,7 @@ function responseTests(locale = '') { ...@@ -698,7 +698,7 @@ function responseTests(locale = '') {
} }
function interfaceTests(locale = '') { function interfaceTests(locale = '') {
it(`${locale} \`globalThis\` is accesible`, async () => { it(`${locale} \`globalThis\` is accessible`, async () => {
const res = await fetchViaHTTP(context.appPort, '/interface/globalthis') const res = await fetchViaHTTP(context.appPort, '/interface/globalthis')
const globals = await res.json() const globals = await res.json()
expect(globals.length > 0).toBe(true) expect(globals.length > 0).toBe(true)
......
...@@ -522,7 +522,7 @@ describe('Required Server Files', () => { ...@@ -522,7 +522,7 @@ describe('Required Server Files', () => {
expect($('#index').text()).toBe('index page') expect($('#index').text()).toBe('index page')
}) })
it('should match the root dyanmic page correctly', async () => { it('should match the root dynamic page correctly', async () => {
const res = await fetchViaHTTP(appPort, '/index', undefined, { const res = await fetchViaHTTP(appPort, '/index', undefined, {
headers: { headers: {
'x-matched-path': '/[slug]', 'x-matched-path': '/[slug]',
......
...@@ -22,7 +22,7 @@ export const getStaticProps = async ( ...@@ -22,7 +22,7 @@ export const getStaticProps = async (
const posts: Post[] = [ const posts: Post[] = [
{ {
author: 'Vercel', author: 'Vercel',
content: 'hello wolrd', content: 'hello world',
}, },
] ]
......
...@@ -768,7 +768,7 @@ describe('should set-up next', () => { ...@@ -768,7 +768,7 @@ describe('should set-up next', () => {
expect($('#index').text()).toBe('index page') expect($('#index').text()).toBe('index page')
}) })
it('should match the root dyanmic page correctly', async () => { it('should match the root dynamic page correctly', async () => {
const res = await fetchViaHTTP(appPort, '/index', undefined, { const res = await fetchViaHTTP(appPort, '/index', undefined, {
headers: { headers: {
'x-matched-path': '/[slug]', 'x-matched-path': '/[slug]',
......
...@@ -61,7 +61,7 @@ describe('splitCookiesString', () => { ...@@ -61,7 +61,7 @@ describe('splitCookiesString', () => {
}) })
}) })
describe('with a mutliple cookies', () => { describe('with a multiple cookies', () => {
it('should parse a plain value', () => { it('should parse a plain value', () => {
const { joined, expected } = generateCookies( const { joined, expected } = generateCookies(
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment