summaryrefslogtreecommitdiff
path: root/std/encoding/_yaml
diff options
context:
space:
mode:
authorAnh Hong <hong4rc@gmail.com>2020-12-11 02:45:45 +0700
committerGitHub <noreply@github.com>2020-12-11 06:45:45 +1100
commitb8bc24d167f2e19482d9dc6d367876c361abf4ea (patch)
tree5e46858514914eed698d1c941fe8593547e93ed4 /std/encoding/_yaml
parentfd9b0202c1bb0e83183fd0a53d8b1303612a5e31 (diff)
chore: fixed various misspellings and other typos (#8691)
Diffstat (limited to 'std/encoding/_yaml')
-rw-r--r--std/encoding/_yaml/example/inout.ts2
-rw-r--r--std/encoding/_yaml/loader/loader.ts2
-rw-r--r--std/encoding/_yaml/type/float.ts2
3 files changed, 3 insertions, 3 deletions
diff --git a/std/encoding/_yaml/example/inout.ts b/std/encoding/_yaml/example/inout.ts
index b0b47e3fe..2f7ca6d6b 100644
--- a/std/encoding/_yaml/example/inout.ts
+++ b/std/encoding/_yaml/example/inout.ts
@@ -23,5 +23,5 @@ const string = stringify(test);
if (Deno.inspect(test) === Deno.inspect(parse(string))) {
console.log("In-Out as expected.");
} else {
- console.log("Someting went wrong.");
+ console.log("Something went wrong.");
}
diff --git a/std/encoding/_yaml/loader/loader.ts b/std/encoding/_yaml/loader/loader.ts
index 16da3ba4a..b4657c745 100644
--- a/std/encoding/_yaml/loader/loader.ts
+++ b/std/encoding/_yaml/loader/loader.ts
@@ -942,7 +942,7 @@ function readBlockScalar(state: LoaderState, nodeIndent: number): boolean {
}
}
- // Break this `while` cycle and go to the funciton's epilogue.
+ // Break this `while` cycle and go to the function's epilogue.
break;
}
diff --git a/std/encoding/_yaml/type/float.ts b/std/encoding/_yaml/type/float.ts
index 93635ba25..832934fe2 100644
--- a/std/encoding/_yaml/type/float.ts
+++ b/std/encoding/_yaml/type/float.ts
@@ -103,7 +103,7 @@ function representYamlFloat(object: Any, style?: StyleVariant): Any {
const res = object.toString(10);
// JS stringifier can build scientific format without dots: 5e-100,
- // while YAML requres dot: 5.e-100. Fix it with simple hack
+ // while YAML requires dot: 5.e-100. Fix it with simple hack
return SCIENTIFIC_WITHOUT_DOT.test(res) ? res.replace("e", ".e") : res;
}