docs: fix typos in code comments (#9841)

Signed-off-by: careworry <worrycare@outlook.com>
This commit is contained in:
careworry
2024-04-20 14:01:39 +08:00
committed by GitHub
parent 8c43f17bac
commit d57866973e
2 changed files with 2 additions and 2 deletions

View File

@@ -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}`
}

View File

@@ -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}`
}