Skip to content

Commit

Permalink
docs: fix typos in code comments (#9841)
Browse files Browse the repository at this point in the history
Signed-off-by: careworry <worrycare@outlook.com>
  • Loading branch information
careworry committed Apr 20, 2024
1 parent 8c43f17 commit d578669
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/core/plugins/json-schema-2020-12-samples/fn/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -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}`
}
Expand Down
2 changes: 1 addition & 1 deletion src/core/plugins/json-schema-5-samples/fn/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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}`
}
Expand Down

0 comments on commit d578669

Please sign in to comment.