Unverified Commit aeddff15 authored by Marcos Hernanz's avatar Marcos Hernanz Committed by GitHub

Fix spelling in two comments (#97136)

### What?

Fix two spelling mistakes in comments.

### Why?

Readability.

### How?

Updated comment text only.

Attribution: This change was originally authored by @adityagiri3600 in
#90594.
Co-authored-by: 's avatarAditya Giri <74224708+adityagiri3600@users.noreply.github.com>
parent 6b017fff
...@@ -88,7 +88,7 @@ function isMatchableSlot(segment: string): boolean { ...@@ -88,7 +88,7 @@ function isMatchableSlot(segment: string): boolean {
const catchAllRouteRegex = /\[?\[\.\.\./ const catchAllRouteRegex = /\[?\[\.\.\./
function isCatchAllRoute(pathname: string): boolean { function isCatchAllRoute(pathname: string): boolean {
// Optional catch-all slots are not currently supported, and as such they are not considered when checking for match compatability. // Optional catch-all slots are not currently supported, and as such they are not considered when checking for match compatibility.
return !isOptionalCatchAll(pathname) && isCatchAll(pathname) return !isOptionalCatchAll(pathname) && isCatchAll(pathname)
} }
......
...@@ -595,7 +595,7 @@ ${fulfilled.body} ...@@ -595,7 +595,7 @@ ${fulfilled.body}
// If the response doesn't match any of the expectations, that's // If the response doesn't match any of the expectations, that's
// fine. If it does match an expectation, but the only thing // fine. If it does match an expectation, but the only thing
// it matches is an expectation that was already claimed, then // it matches is an expectation that was already claimed, then
// that's an error — each occurence of an expectation must be // that's an error — each occurrence of an expectation must be
// given separately. // given separately.
let responseWasClaimed = false let responseWasClaimed = false
let firstAlreadyClaimedMatch: ExpectedResponseConfig | null = null let firstAlreadyClaimedMatch: ExpectedResponseConfig | null = null
......
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