Fix typos

This commit is contained in:
John Firebaugh
2021-10-24 11:01:44 -07:00
parent 61215456fc
commit 3e082bb20e
3 changed files with 3 additions and 3 deletions

View File

@@ -39,7 +39,7 @@ export function actionJoin(ids) {
});
// Prefer to keep an existing way.
// if there are mulitple existing ways, keep the oldest one
// if there are multiple existing ways, keep the oldest one
// the oldest way is determined by the ID of the way
const survivorID = (
ways

View File

@@ -478,7 +478,7 @@ export function behaviorDrawWay(context, wayID, mode, startGraph) {
const indexOfSecondLast = way.nodes.indexOf(secondLastNodeId);
// for a closed way, the first/last node is the same so it appears twice in the array,
// but indexOf always finds the first occurance. This is only an issue when following a way
// but indexOf always finds the first occurrence. This is only an issue when following a way
// in descending order
const isDescendingPastZero = indexOfLast === way.nodes.length - 2 && indexOfSecondLast === 0;

View File

@@ -871,7 +871,7 @@ function validationCache(which) {
const issue = cache.issuesByIssueID[issueID];
if (issue) {
(issue.entityIds || []).forEach(relatedID => result.add(relatedID));
} else { // shouldnt happen, clean up
} else { // shouldn't happen, clean up
delete cache.issuesByIssueID[issueID];
}
});