Fix typos.
Summary: Fix a bunch of typos.
Reviewers: clayborg
Subscribers: lldb-commits
Differential Revision: http://reviews.llvm.org/D11386
llvm-svn: 242856
diff --git a/lldb/source/Host/common/XML.cpp b/lldb/source/Host/common/XML.cpp
index 14e786a..6cd9af0 100644
--- a/lldb/source/Host/common/XML.cpp
+++ b/lldb/source/Host/common/XML.cpp
@@ -329,7 +329,7 @@
else
{
if (node->name)
- continue; // nullptr name specified and this elemnt has a name, ignore this one
+ continue; // nullptr name specified and this element has a name, ignore this one
}
if (callback(XMLNode(node)) == false)
diff --git a/lldb/source/Host/windows/ConnectionGenericFileWindows.cpp b/lldb/source/Host/windows/ConnectionGenericFileWindows.cpp
index e2b23d0..eebf3d4 100644
--- a/lldb/source/Host/windows/ConnectionGenericFileWindows.cpp
+++ b/lldb/source/Host/windows/ConnectionGenericFileWindows.cpp
@@ -21,7 +21,7 @@
namespace
{
// This is a simple helper class to package up the information needed to return from a Read/Write
-// operation function. Since there is alot of code to be run before exit regardless of whether the
+// operation function. Since there is a lot of code to be run before exit regardless of whether the
// operation succeeded or failed, combined with many possible return paths, this is the cleanest
// way to represent it.
class ReturnInfo
@@ -251,7 +251,7 @@
}
else
{
- // An unknown error occured. Fail out.
+ // An unknown error occurred. Fail out.
return_info.Set(0, eConnectionStatusError, ::GetLastError());
}
goto finish;
diff --git a/lldb/source/Host/windows/EditLineWin.cpp b/lldb/source/Host/windows/EditLineWin.cpp
index 8b5c2f2..55fe52d 100644
--- a/lldb/source/Host/windows/EditLineWin.cpp
+++ b/lldb/source/Host/windows/EditLineWin.cpp
@@ -35,7 +35,7 @@
// stored key bindings
static std::vector<el_binding*> _bindings;
-//TODO: this should infact be related to the exact edit line context we create
+//TODO: this should in fact be related to the exact edit line context we create
static void *clientData = NULL;
// store the current prompt string
@@ -125,7 +125,7 @@
DWORD _read = 0;
if ( ReadConsoleInputA( GetStdHandle( STD_INPUT_HANDLE ), &_record, 1, &_read ) == FALSE )
break;
- // if we didnt read a key
+ // if we didn't read a key
if ( _read == 0 )
continue;
// only interested in key events
@@ -179,7 +179,7 @@
}
#endif
-// edit line initalise
+// edit line initialize
EditLine *
el_init (const char *, FILE *, FILE *, FILE *)
{
@@ -263,7 +263,7 @@
case ( EL_HIST ):
{
// EL_HIST, History *(*fun)(History *, int op, ... ), const char *ptr
- // defines which histroy function to use, which is usualy history(). Ptr should be the
+ // defines which history function to use, which is usually history(). Ptr should be the
// value returned by history_init().
}
break;
@@ -271,7 +271,7 @@
{
// EL_ADDFN, const char *name, const char *help, unsigned char (*func)(EditLine *e, int ch)
// add a user defined function, func), referred to as 'name' which is invoked when a key which is bound to 'name' is
- // entered. 'help' is a description of 'name'. at involcation time, 'ch' is the key which caused the invocation. the
+ // entered. 'help' is a description of 'name'. at invocation time, 'ch' is the key which caused the invocation. the
// return value of 'func()' should be one of:
// CC_NORM add a normal character
// CC_NEWLINE end of line was entered
@@ -280,8 +280,8 @@
// CC_REFRESH refresh display.
// CC_REFRESH_BEEP refresh display and beep.
// CC_CURSOR cursor moved so update and perform CC_REFRESH
- // CC_REDISPLAY redisplay entire input line. this is usefull if a key binding outputs extra information.
- // CC_ERROR an error occured. beep and flush tty.
+ // CC_REDISPLAY redisplay entire input line. this is useful if a key binding outputs extra information.
+ // CC_ERROR an error occurred. beep and flush tty.
// CC_FATAL fatal error, reset tty to known state.
el_binding *binding = new el_binding;
@@ -296,7 +296,7 @@
case ( EL_BIND ):
{
// EL_BIND, const char *, ..., NULL
- // perform the BIND buildin command. Refer to editrc(5) for more information.
+ // perform the BIND built-in command. Refer to editrc(5) for more information.
const char *name = va_arg( vl, const char* );