chore(spelling): add codespell pre-commit hook

Fixes spelling mistakes identified by it.
This commit is contained in:
Leroy Hopson 2024-03-29 23:55:53 +13:00
parent bc15d8950f
commit 1d2898f6ab
No known key found for this signature in database
GPG key ID: D2747312A6DB51AA
14 changed files with 23 additions and 18 deletions

View file

@ -149,7 +149,7 @@ HRESULT CreateNamedPipesAndPseudoConsole(COORD size, DWORD dwFlags,
}
}
// Failed to find kernel32. This is realy unlikely - honestly no idea how
// Failed to find kernel32. This is really unlikely - honestly no idea how
// this is even possible to hit. But if it does happen, fall back to
// winpty.
return HRESULT_FROM_WIN32(GetLastError());
@ -180,7 +180,7 @@ static NAN_METHOD(PtyStartProcess) {
const bool inheritCursor = Nan::To<bool>(info[5]).FromJust();
// use environment 'Path' variable to determine location of
// the relative path that we have recieved (e.g cmd.exe)
// the relative path that we have received (e.g cmd.exe)
std::wstring shellpath;
if (::PathIsRelativeW(filename.c_str())) {
shellpath = path_util::get_shell_path(filename.c_str());

View file

@ -147,7 +147,7 @@ static NAN_METHOD(PtyStartProcess) {
}
// use environment 'Path' variable to determine location of
// the relative path that we have recieved (e.g cmd.exe)
// the relative path that we have received (e.g cmd.exe)
std::wstring shellpath;
if (::PathIsRelativeW(filename)) {
shellpath = path_util::get_shell_path(filename);