diff --git a/doc/handbook/Modules.md b/doc/handbook/Modules.md index 49caf49..c9dd5cb 100644 --- a/doc/handbook/Modules.md +++ b/doc/handbook/Modules.md @@ -431,7 +431,7 @@ if (needZipValidation) { ```ts declare function require(moduleNames: string[], onLoad: (...args: any[]) => void): void; -import * as Zip from "./ZipCodeValidator"; +import * as Zip from "./ZipCodeValidator"; if (needZipValidation) { require(["./ZipCodeValidator"], (ZipCodeValidator: typeof Zip) => { diff --git a/doc/handbook/Namespaces.md b/doc/handbook/Namespaces.md index e3eb15f..0e01ca3 100644 --- a/doc/handbook/Namespaces.md +++ b/doc/handbook/Namespaces.md @@ -171,7 +171,7 @@ validators["Letters only"] = new Validation.LettersOnlyValidator(); // Show whether each string passed each validator for (let s of strings) { for (let name in validators) { - console.log(""" + s + "" " + (validators[name].isAcceptable(s) ? " matches " : " does not match ") + name); + console.log(`"${ s }" - ${ validators[name].isAcceptable(s) ? "matches" : "does not match" } ${ name }`); } } ```