From 54862a27e27a3ebc07800372b92b28041fd0248d Mon Sep 17 00:00:00 2001 From: Vladimir Matveev Date: Wed, 13 Apr 2016 21:36:36 -0700 Subject: [PATCH] fix typo in message --- src/compiler/diagnosticMessages.json | 2 +- src/compiler/program.ts | 2 +- tests/baselines/reference/pathsValidation1.errors.txt | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/compiler/diagnosticMessages.json b/src/compiler/diagnosticMessages.json index 301130a308..5dfd7016af 100644 --- a/src/compiler/diagnosticMessages.json +++ b/src/compiler/diagnosticMessages.json @@ -2292,7 +2292,7 @@ "category": "Error", "code": 5062 }, - "Substututions for patterns '{0}' should be an array.": { + "Substututions for pattern '{0}' should be an array.": { "category": "Error", "code": 5063 }, diff --git a/src/compiler/program.ts b/src/compiler/program.ts index 9d99f2873a..658d6946a3 100644 --- a/src/compiler/program.ts +++ b/src/compiler/program.ts @@ -1999,7 +1999,7 @@ namespace ts { } } else { - programDiagnostics.add(createCompilerDiagnostic(Diagnostics.Substututions_for_patterns_0_should_be_an_array, key)); + programDiagnostics.add(createCompilerDiagnostic(Diagnostics.Substututions_for_pattern_0_should_be_an_array, key)); } } } diff --git a/tests/baselines/reference/pathsValidation1.errors.txt b/tests/baselines/reference/pathsValidation1.errors.txt index 8b82f11735..c6193be67a 100644 --- a/tests/baselines/reference/pathsValidation1.errors.txt +++ b/tests/baselines/reference/pathsValidation1.errors.txt @@ -1,6 +1,6 @@ -error TS5063: Substututions for patterns '*' should be an array. +error TS5063: Substututions for pattern '*' should be an array. -!!! error TS5063: Substututions for patterns '*' should be an array. +!!! error TS5063: Substututions for pattern '*' should be an array. ==== tests/cases/compiler/a.ts (0 errors) ==== let x = 1; \ No newline at end of file