From 08f25bef501ec3cf5d176f40e265aacece05e0d5 Mon Sep 17 00:00:00 2001 From: zhongsp Date: Thu, 11 Jan 2018 13:15:50 +0800 Subject: [PATCH] A few corrections. PR706 --- doc/handbook/Modules.md | 2 +- doc/handbook/Namespaces.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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 }`); } } ```