Skip to content
This repository has been archived by the owner on Jul 15, 2023. It is now read-only.

Commit

Permalink
Fix some typos (#2055)
Browse files Browse the repository at this point in the history
  • Loading branch information
42wim authored and ramya-rao-a committed Oct 30, 2018
1 parent e14f791 commit d1e8666
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions src/avlTree.ts
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ export class NearestNeighborDict<K, V> {
/**
* Gets a node within the tree with a specific key, or the nearest neighbor to that node if it does not exist.
* @param key The key being searched for.
* @return The (key, value) pair of the node with key nearset the given key in value.
* @return The (key, value) pair of the node with key nearest the given key in value.
*/
public getNearest(key: K): Node<K, V> {
return this._getNearest(key, this._root, this._root);
Expand All @@ -221,7 +221,7 @@ export class NearestNeighborDict<K, V> {
* @param key The key being searched for.
* @param root The root of the tree to search in.
* @param closest The current best estimate of the node closest to the node being searched for, as measured by this._distance
* @return The (key, value) pair of the node with key nearset the given key in value.
* @return The (key, value) pair of the node with key nearest the given key in value.
*/
private _getNearest(key: K, root: Node<K, V>, closest: Node<K, V>): Node<K, V> {
const result = this._compare(key, root.key);
Expand Down
4 changes: 2 additions & 2 deletions src/goImplementations.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ interface GuruImplementsOutput {

export class GoImplementationProvider implements vscode.ImplementationProvider {
public provideImplementation(document: vscode.TextDocument, position: vscode.Position, token: vscode.CancellationToken): Thenable<vscode.Definition> {
// To keep `guru implements` fast we want to restrict the scope of the search to current workpsace
// If no workpsace is open, then no-op
// To keep `guru implements` fast we want to restrict the scope of the search to current workspace
// If no workspace is open, then no-op
const root = getWorkspaceFolderPath(document.uri);
if (!root) {
vscode.window.showInformationMessage('Cannot find implementations when there is no workspace open.');
Expand Down
2 changes: 1 addition & 1 deletion src/goLiveErrors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ function processFile(e: vscode.TextDocumentChangeEvent) {
}
// extract the line, column and error message from the gotype output
let [_, file, line, column, message] = /^(.+):(\d+):(\d+):\s+(.+)/.exec(error);
// get cannonical file path
// get canonical file path
file = vscode.Uri.file(file).toString();
let range = new vscode.Range(+line - 1, +column, +line - 1, +column);
let diagnostic = new vscode.Diagnostic(range, message, vscode.DiagnosticSeverity.Error);
Expand Down
2 changes: 1 addition & 1 deletion src/util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -508,7 +508,7 @@ export function timeout(millis): Promise<void> {
}

/**
* Exapnds ~ to homedir in non-Windows platform and resolves ${workspaceFolder} or ${workspaceRoot}
* Expands ~ to homedir in non-Windows platform and resolves ${workspaceFolder} or ${workspaceRoot}
*/
export function resolvePath(inputPath: string, workspaceFolder?: string): string {
if (!inputPath || !inputPath.trim()) return inputPath;
Expand Down

0 comments on commit d1e8666

Please sign in to comment.