From 31c73aef7c0eddd19e42392d57101dd6dbf484ef Mon Sep 17 00:00:00 2001 From: Florian Loitsch Date: Mon, 16 Nov 2015 22:06:44 +0100 Subject: [PATCH] Fix ambigous typos. R=johnmccutchan@google.com Review URL: https://codereview.chromium.org/1443723004 . --- runtime/observatory/lib/src/debugger/debugger_location.dart | 5 +++-- runtime/observatory/lib/src/elements/debugger.dart | 2 +- tools/ddbg.dart | 2 +- tools/ddbg_service/lib/debugger.dart | 2 +- 4 files changed, 6 insertions(+), 5 deletions(-) diff --git a/runtime/observatory/lib/src/debugger/debugger_location.dart b/runtime/observatory/lib/src/debugger/debugger_location.dart index 31facf20f0b..caf5f57f1fc 100644 --- a/runtime/observatory/lib/src/debugger/debugger_location.dart +++ b/runtime/observatory/lib/src/debugger/debugger_location.dart @@ -97,7 +97,8 @@ class DebuggerLocation { return new DebuggerLocation.file(scripts[0], line, col); } else { // TODO(turnidge): Allow the user to disambiguate. - return new DebuggerLocation.error("Script '${scriptName}' is ambigous"); + return + new DebuggerLocation.error("Script '${scriptName}' is ambiguous"); } } else { // No script provided. Default to top of stack for now. @@ -253,7 +254,7 @@ class DebuggerLocation { } else { // TODO(turnidge): Allow the user to disambiguate. return new DebuggerLocation.error( - "Function '${match.group(0)}' is ambigous"); + "Function '${match.group(0)}' is ambiguous"); } return new DebuggerLocation.error('foo'); }); diff --git a/runtime/observatory/lib/src/elements/debugger.dart b/runtime/observatory/lib/src/elements/debugger.dart index 431007529dd..d7973ea9312 100644 --- a/runtime/observatory/lib/src/elements/debugger.dart +++ b/runtime/observatory/lib/src/elements/debugger.dart @@ -1724,7 +1724,7 @@ class ObservatoryDebugger extends Debugger { // Unambiguous completion. return completions[0]; } else { - // Ambigous completion. + // Ambiguous completion. completions = completions.map((s) => s.trimRight()).toList(); console.printBold(completions.toString()); return _foldCompletions(completions); diff --git a/tools/ddbg.dart b/tools/ddbg.dart index 1d1199b670b..f14a0170a93 100644 --- a/tools/ddbg.dart +++ b/tools/ddbg.dart @@ -774,7 +774,7 @@ void processCommand(String cmdLine) { }); } else { var matchNames = matches.map((handler) => handler.name); - print("Ambigous command '$command' : ${matchNames.toList()}"); + print("Ambiguous command '$command' : ${matchNames.toList()}"); cmdo.show(); } } diff --git a/tools/ddbg_service/lib/debugger.dart b/tools/ddbg_service/lib/debugger.dart index d3b0f9cbfd0..0a041614c77 100644 --- a/tools/ddbg_service/lib/debugger.dart +++ b/tools/ddbg_service/lib/debugger.dart @@ -160,7 +160,7 @@ class Debugger { }); } else { var matchNames = matches.map((handler) => handler.name); - cmdo.print("Ambigous command '$command' : ${matchNames.toList()}"); + cmdo.print("Ambiguous command '$command' : ${matchNames.toList()}"); cmdo.show(); } }