From d57866973ef21c1b5a6b5f8b0700716e278a979c Mon Sep 17 00:00:00 2001 From: careworry <167077904+careworry@users.noreply.github.com> Date: Sat, 20 Apr 2024 14:01:39 +0800 Subject: [PATCH] docs: fix typos in code comments (#9841) Signed-off-by: careworry --- src/core/plugins/json-schema-2020-12-samples/fn/main.js | 2 +- src/core/plugins/json-schema-5-samples/fn/index.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/core/plugins/json-schema-2020-12-samples/fn/main.js b/src/core/plugins/json-schema-2020-12-samples/fn/main.js index c3f186f8..0c6fc06e 100644 --- a/src/core/plugins/json-schema-2020-12-samples/fn/main.js +++ b/src/core/plugins/json-schema-2020-12-samples/fn/main.js @@ -219,7 +219,7 @@ export const sampleFromSchemaGeneric = ( // if json just return if (!respectXML) { - // spacial case yaml parser can not know about + // special case yaml parser can not know about if (typeof sample === "number" && type === "string") { return `${sample}` } diff --git a/src/core/plugins/json-schema-5-samples/fn/index.js b/src/core/plugins/json-schema-5-samples/fn/index.js index 6434c506..e1fcf862 100644 --- a/src/core/plugins/json-schema-5-samples/fn/index.js +++ b/src/core/plugins/json-schema-5-samples/fn/index.js @@ -380,7 +380,7 @@ export const sampleFromSchemaGeneric = (schema, config={}, exampleOverride = und // if json just return if(!respectXML) { - // spacial case yaml parser can not know about + // special case yaml parser can not know about if(typeof sample === "number" && type === "string") { return `${sample}` }