mirror of
https://github.com/dart-lang/sdk
synced 2024-10-04 18:47:55 +00:00
Fix ambigous typos.
R=johnmccutchan@google.com Review URL: https://codereview.chromium.org/1443723004 .
This commit is contained in:
parent
8a0bdfbd9b
commit
31c73aef7c
|
@ -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');
|
||||
});
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue