Skip to content

Commit 3d40930

Browse files
authored
chore: fix some comments (remix-run#11886)
1 parent 6c27453 commit 3d40930

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

contributors.yml

+1
Original file line numberDiff line numberDiff line change
@@ -242,6 +242,7 @@
242242
- printfn
243243
- promet99
244244
- proshunsuke
245+
- pwdcd
245246
- pyitphyoaung
246247
- refusado
247248
- reyronald

packages/react-router/lib/router/router.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,7 @@ export interface Router {
271271

272272
/**
273273
* State maintained internally by the router. During a navigation, all states
274-
* reflect the the "old" location unless otherwise noted.
274+
* reflect the "old" location unless otherwise noted.
275275
*/
276276
export interface RouterState {
277277
// TODO: (v7) should we consider renaming this `navigationType` to align with
@@ -1757,7 +1757,7 @@ export function createRouter(init: RouterInit): Router {
17571757
if (opts && opts.replace != null) {
17581758
replace = opts.replace;
17591759
} else {
1760-
// If the user didn't explicity indicate replace behavior, replace if
1760+
// If the user didn't explicitly indicate replace behavior, replace if
17611761
// we redirected to the exact same location we're currently at to avoid
17621762
// double back-buttons
17631763
let location = normalizeRedirectLocation(

packages/react-router/lib/router/utils.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -692,7 +692,7 @@ function explodeOptionalSegments(path: string): string[] {
692692
let required = first.replace(/\?$/, "");
693693

694694
if (rest.length === 0) {
695-
// Intepret empty string as omitting an optional segment
695+
// Interpret empty string as omitting an optional segment
696696
// `["one", "", "three"]` corresponds to omitting `:two` from `/one/:two?/three` -> `/one/three`
697697
return isOptional ? [required, ""] : [required];
698698
}
@@ -1081,7 +1081,7 @@ export function decodePath(value: string) {
10811081
} catch (error) {
10821082
warning(
10831083
false,
1084-
`The URL path "${value}" could not be decoded because it is is a ` +
1084+
`The URL path "${value}" could not be decoded because it is a ` +
10851085
`malformed URL segment. This is probably due to a bad percent ` +
10861086
`encoding (${error}).`
10871087
);

0 commit comments

Comments
 (0)