[haiku-development] Typo in Haiku Book BString Truncate Method

  • From: John Scipione <jscipione@xxxxxxxxx>
  • To: haiku-development@xxxxxxxxxxxxx
  • Date: Fri, 6 May 2011 17:53:57 -0400

Noticed a typo in the Haiku Book, can someone apply one of the two patches
below:

This first patch just fixes the typo (lenght becomes length):

diff --git a/docs/user/support/string.dox b/docs/user/support/string.dox
index edb694a..500f57b 100644
--- a/docs/user/support/string.dox
+++ b/docs/user/support/string.dox
@@ -493,7 +493,7 @@ This method calls operator+=(const char *str).
 /*!
 \fn BString& BString::Truncate(int32 newLength, bool lazy)
 \brief Truncate the string to the new length.
-\param newLength The new lenght of the string.
+\param newLength The new length of the string.
 \param lazy If true, the memory-optimisation is postponed to later
 \return This method always returns \c *this .
 */

This second patch also changes the spelling of the word optimisation to
optimization. I initially thought that this was also a typo but I googled it
and apparently "optimisation" is spelled with an 's' in some parts of the
world. If we want US English spelling though apply this second patch
instead.

diff --git a/docs/user/support/string.dox b/docs/user/support/string.dox
index edb694a..c450b17 100644
--- a/docs/user/support/string.dox
+++ b/docs/user/support/string.dox
@@ -493,8 +493,8 @@ This method calls operator+=(const char *str).
 /*!
 \fn BString& BString::Truncate(int32 newLength, bool lazy)
 \brief Truncate the string to the new length.
-\param newLength The new lenght of the string.
-\param lazy If true, the memory-optimisation is postponed to later
+\param newLength The new length of the string.
+\param lazy If true, the memory-optimization is postponed to later
 \return This method always returns \c *this .
 */

Thank you,
John Scipione

Other related posts: