Browse Source

Minor typo correction on the String::Compare() method.

Yao Wei Tjong 姚伟忠 11 years ago
parent
commit
1f91109413
2 changed files with 3 additions and 3 deletions
  1. 1 1
      Docs/Reference.dox
  2. 2 2
      Source/Engine/Container/Str.h

+ 1 - 1
Docs/Reference.dox

@@ -835,7 +835,7 @@ Deferred rendering needs to render each opaque object only once to the G-buffer,
 
 After the G-buffer has been rendered, light volumes will be rendered into the final rendertarget to accumulate per-pixel lighting. As the material albedo is available, all lighting calculations are final and output both the diffuse and specular color at the same time. After light accumulation rendering proceeds to post-opaque, refract, transparent, and post-alpha passes, as in other rendering modes.
 
-\section RenderingModes_Comparision Advantages and disadvantages
+\section RenderingModes_Comparison Advantages and disadvantages
 
 Whether using forward or deferred rendering modes is more advantageous depends on the scene and lighting complexity.
 

+ 2 - 2
Source/Engine/Container/Str.h

@@ -369,9 +369,9 @@ public:
     unsigned Capacity() const { return capacity_; }
     /// Return whether the string is empty.
     bool Empty() const { return length_ == 0; }
-    /// Return comparision result with a string.
+    /// Return comparison result with a string.
     int Compare(const String& str, bool caseSensitive = true) const;
-    /// Return comparision result with a C string.
+    /// Return comparison result with a C string.
     int Compare(const char* str, bool caseSensitive = true) const;
     /// Return whether contains a specific occurence of a string.
     bool Contains(const String& str, bool caseSensitive = true) const { return Find(str, 0, caseSensitive) != NPOS; }