git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH 1/2] fix typo in Documentation

From
MMMikael Magnusson <mikachu@gmail.com>
Date
Feb 6, 2009, 13:43 UTC
Message-ID
<237967ef0902060543q2cc13d99l852c8427fb66402b@mail.gmail.com>
In-Reply-To
<1233781241-721-1-git-send-email-guanqun.lu@gmail.com>
2009/2/4 Guanqun Lu <guanqun.lu@gmail.com>:
Show 18 quoted lines
> Signed-off-by: Guanqun Lu <guanqun.lu@gmail.com>
> ---
>  Documentation/technical/api-strbuf.txt |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/Documentation/technical/api-strbuf.txt b/Documentation/technical/api-strbuf.txt
> index 9a4e3ea..ac56d1c 100644
> --- a/Documentation/technical/api-strbuf.txt
> +++ b/Documentation/technical/api-strbuf.txt
> @@ -21,7 +21,7 @@ allocated memory or not), use `strbuf_detach()` to unwrap a memory
>  buffer from its strbuf shell in a safe way. That is the sole supported
>  way. This will give you a malloced buffer that you can later `free()`.
>  +
> -However, it it totally safe to modify anything in the string pointed by
> +However, it is totally safe to modify anything in the string pointed by
>  the `buf` member, between the indices `0` and `len-1` (inclusive).
>
>  . The `buf` member is a byte array that has at least `len + 1` bytes
Shouldn't that be "the string pointed >>at<< by" too?
-- 
Mikael Magnusson
Previous: Jakub Narebski
Message 8 of 8 in “fix typo in Documentation”
  1. 1/2 fix typo in DocumentationGuanqun Lu, Feb 4, 2009
  2. Sverre RabbelierFeb 4, 2009
  3. Jakub NarebskiFeb 4, 2009
  4. Guanqun LuFeb 5, 2009
  5. 2/2 add test-dump-cache-tree in MakefileGuanqun Lu, Feb 4, 2009
  6. Junio C HamanoFeb 4, 2009
  7. Jakub NarebskiFeb 4, 2009
  8. Mikael MagnussonFeb 6, 2009

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.