Merge branch 'jm/api-strbuf-doc'
authorJunio C Hamano <gitster@pobox.com>
Fri, 20 Jun 2014 20:12:10 +0000 (13:12 -0700)
committerJunio C Hamano <gitster@pobox.com>
Fri, 20 Jun 2014 20:12:11 +0000 (13:12 -0700)
* jm/api-strbuf-doc:
api-strbuf.txt minor typos

1  2 
Documentation/technical/api-strbuf.txt
index 077a7096a4ba3c47a0cbc8981abdde1b7b35d924,1d00e4d5968d2de25792e07d79d9d651da6b72f0..f9c06a7573e9294a967d641cdfc2723b86c1c864
@@@ -7,10 -7,10 +7,10 @@@ use the mem* functions than a str* one 
  Though, one has to be careful about the fact that str* functions often
  stop on NULs and that strbufs may have embedded NULs.
  
- An strbuf is NUL terminated for convenience, but no function in the
+ A strbuf is NUL terminated for convenience, but no function in the
  strbuf API actually relies on the string being free of NULs.
  
- strbufs has some invariants that are very important to keep in mind:
+ strbufs have some invariants that are very important to keep in mind:
  
  . The `buf` member is never NULL, so it can be used in any usual C
  string operations safely. strbuf's _have_ to be initialized either by
@@@ -56,8 -56,8 +56,8 @@@ Data structure
  * `struct strbuf`
  
  This is the string buffer structure. The `len` member can be used to
- determine the current length of the string, and `buf` member provides access to
- the string itself.
+ determine the current length of the string, and `buf` member provides
access to the string itself.
  
  Functions
  ---------
  
  * Related to the contents of the buffer
  
 +`strbuf_trim`::
 +
 +      Strip whitespace from the beginning and end of a string.
 +      Equivalent to performing `strbuf_rtrim()` followed by `strbuf_ltrim()`.
 +
  `strbuf_rtrim`::
  
        Strip whitespace from the end of a string.
  
 +`strbuf_ltrim`::
 +
 +      Strip whitespace from the beginning of a string.
 +
 +`strbuf_reencode`::
 +
 +      Replace the contents of the strbuf with a reencoded form.  Returns -1
 +      on error, 0 on success.
 +
 +`strbuf_tolower`::
 +
 +      Lowercase each character in the buffer using `tolower`.
 +
  `strbuf_cmp`::
  
        Compare two buffers. Returns an integer less than, equal to, or greater
@@@ -202,7 -184,7 +202,7 @@@ strbuf_addstr(sb, "immediate string")
  
  `strbuf_addbuf`::
  
-       Copy the contents of an other buffer at the end of the current one.
+       Copy the contents of another buffer at the end of the current one.
  
  `strbuf_adddup`::