Browse Source

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

Yao Wei Tjong 姚伟忠 11 năm trước cách đây
mục cha
commit
1f91109413

+ 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.
 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.
 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_; }
     unsigned Capacity() const { return capacity_; }
     /// Return whether the string is empty.
     /// Return whether the string is empty.
     bool Empty() const { return length_ == 0; }
     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;
     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;
     int Compare(const char* str, bool caseSensitive = true) const;
     /// Return whether contains a specific occurence of a string.
     /// Return whether contains a specific occurence of a string.
     bool Contains(const String& str, bool caseSensitive = true) const { return Find(str, 0, caseSensitive) != NPOS; }
     bool Contains(const String& str, bool caseSensitive = true) const { return Find(str, 0, caseSensitive) != NPOS; }