Skip to content

Commit

Permalink
api-strbuf.txt minor typos
Browse files Browse the repository at this point in the history
Fixed some minor typos in api-strbuf.txt: 'A' instead of 'An', 'have'
instead of 'has', a overlong line, and 'another' instead of 'an other'.

Signed-off-by: Jeremiah Mahler <jmmahler@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
  • Loading branch information
Jeremiah Mahler authored and Junio C Hamano committed Jun 9, 2014
1 parent bce14aa commit 97ea0d1
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions Documentation/technical/api-strbuf.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ use the mem* functions than a str* one (memchr vs. strchr e.g.).
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
Expand Down Expand Up @@ -56,8 +56,8 @@ Data structures
* `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
---------
Expand Down Expand Up @@ -184,7 +184,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`::

Expand Down

0 comments on commit 97ea0d1

Please sign in to comment.