fix typo in Documentation
Signed-off-by: Guanqun Lu <guanqun.lu@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
parent
e1e4389832
commit
c9a8abcf9a
@ -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
|
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()`.
|
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, between the indices `0` and `len-1` (inclusive).
|
||||||
|
|
||||||
. The `buf` member is a byte array that has at least `len + 1` bytes
|
. The `buf` member is a byte array that has at least `len + 1` bytes
|
||||||
|
Loading…
x
Reference in New Issue
Block a user