diff --git a/CMakeLists.txt b/CMakeLists.txt
index c40cc15..65b64cb 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -29,7 +29,7 @@ set(GENERIC_LIB_SOVERSION "6")
################################
# Add targets
-# By Default shared libray is being built
+# By Default shared library is being built
# To build static libs also - Do cmake . -DBUILD_STATIC_LIBS:BOOL=ON
# User can choose not to build shared library by using cmake -DBUILD_SHARED_LIBS:BOOL=OFF
# To build only static libs use cmake . -DBUILD_SHARED_LIBS:BOOL=OFF -DBUILD_STATIC_LIBS:BOOL=ON
diff --git a/tinyxml2.h b/tinyxml2.h
index 950c2da..a09bd5b 100755
--- a/tinyxml2.h
+++ b/tinyxml2.h
@@ -1833,7 +1833,7 @@ public:
/// A (trivial) utility function that prints the ErrorStr() to stdout.
void PrintError() const;
- /// Return the line where the error occured, or zero if unknown.
+ /// Return the line where the error occurred, or zero if unknown.
int ErrorLineNum() const
{
return _errorLineNum;
diff --git a/xmltest.cpp b/xmltest.cpp
index ac0d85c..0299909 100644
--- a/xmltest.cpp
+++ b/xmltest.cpp
@@ -1967,7 +1967,7 @@ int main( int argc, const char ** argv )
{
// No matter - before or after successfully parsing a text -
// calling XMLDocument::Value() used to cause an assert in debug.
- // Null must be retured.
+ // Null must be returned.
const char* validXml = ""
""
"";