From 5c74e4ced2f449c657ddb052cc49e489fb2f6e72 Mon Sep 17 00:00:00 2001 From: Joshua Horton Date: Fri, 20 Oct 2023 16:21:20 +0700 Subject: [PATCH] chore(web): Apply suggestions from code review Co-authored-by: Marc Durdin --- common/web/input-processor/src/correctionLayout.ts | 2 +- common/web/input-processor/src/corrections.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/common/web/input-processor/src/correctionLayout.ts b/common/web/input-processor/src/correctionLayout.ts index 547723a948..c73bcc2eb0 100644 --- a/common/web/input-processor/src/correctionLayout.ts +++ b/common/web/input-processor/src/correctionLayout.ts @@ -40,7 +40,7 @@ export interface CorrectionLayout { /** * Defines the mappings of each key to be considered by a key-correction * algorithm. The key's bounding box should be defined relative to its - * containers bounding box, with both mapped to a coordinate system from + * container's bounding box, with both mapped to a coordinate system from * <0, 0> to <1, 1> - a unit square. */ keys: CorrectionLayoutEntry[]; diff --git a/common/web/input-processor/src/corrections.ts b/common/web/input-processor/src/corrections.ts index 0fb2af4a92..25e7f73246 100644 --- a/common/web/input-processor/src/corrections.ts +++ b/common/web/input-processor/src/corrections.ts @@ -12,7 +12,7 @@ import { CorrectionLayout } from "./correctionLayout.js"; export function keyTouchDistances(touchCoords: {x: number, y: number}, correctiveLayout: CorrectionLayout): Map { let keyDists: Map = new Map(); - // This double-nested loop computes a pseudo-distance for the touch from each key. Quite useful for + // This loop computes a pseudo-distance for the touch from each key. Quite useful for // generating a probability distribution. correctiveLayout.keys.forEach((entry) => { // These represent the within-key distance of the touch from the key's center.