Skip to content

Commit

Permalink
Fix typos
Browse files Browse the repository at this point in the history
  • Loading branch information
szepeviktor committed Mar 5, 2024
1 parent 095bf68 commit 304da6e
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ v0.0.6 (2022-04-06)
v0.0.5 (2022-03-16)
-------------------

- Intl.DateTimeFormat corretly polyfilled to customize output based on Temporal type
- Intl.DateTimeFormat correctly polyfilled to customize output based on Temporal type
- fixes to TimeZone object


Expand Down
2 changes: 1 addition & 1 deletion packages/durationformat-polyfill/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Temporal } from 'temporal-spec'

// Unfortunately neccesary as typescript does not include typings for ecma drafts
// Unfortunately necessary as typescript does not include typings for ecma drafts
// TODO: Remove when ListFormat becomes part of the official spec
declare global {
namespace Intl {
Expand Down
2 changes: 1 addition & 1 deletion packages/temporal-polyfill/scripts/test262.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ yargs(hideBin(process.argv))
requiresArg: false,
default: 10,
type: 'number',
description: 'Maxiumum allowed number of failures before aborting',
description: 'Maximum allowed number of failures before aborting',
})
.option('esm', {
requiresArg: false,
Expand Down
2 changes: 1 addition & 1 deletion packages/temporal-polyfill/src/internal/isoParse.ts
Original file line number Diff line number Diff line change
Expand Up @@ -391,7 +391,7 @@ const dateTimeRegExpStr =
// which only ever runs on strings already parsed by annotationsRegExpStr
const annotationRegExpStr = '\\[(!?)([^\\]]*)\\]' // critical:1, annotation:2

// Limit the number of annotations (maximum 9) to prevet reDoS attack
// Limit the number of annotations (maximum 9) to prevent reDoS attack
const annotationsRegExpStr = `((?:${annotationRegExpStr}){0,9})` // multiple

const yearMonthRegExp = createRegExp(yearMonthRegExpStr + annotationsRegExpStr)
Expand Down
2 changes: 1 addition & 1 deletion packages/temporal-polyfill/src/internal/round.ts
Original file line number Diff line number Diff line change
Expand Up @@ -523,7 +523,7 @@ function nudgeRelativeDurationTime(
)
const beyondDay = roundedTimeNano - daySpanEpochNanoseconds

// TODO: document. somthing to do with rounding a zdt to the next day
// TODO: document. something to do with rounding a zdt to the next day
if (!beyondDay || Math.sign(beyondDay) === sign) {
dayDelta += sign
roundedTimeNano = roundByInc(beyondDay, nanoInc, roundingMode)
Expand Down

0 comments on commit 304da6e

Please sign in to comment.