Skip to content

Commit c2c52d9

Browse files
sunxiaoguangnikic
authored andcommitted
A possible typo
Signed-off-by: Xiaoguang Sun <[email protected]>
1 parent a3f6b8f commit c2c52d9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Book/php7/internal_types/strings/zend_strings.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ This also brings us to the next topic: refcount management. Rather than using ra
148148
return zend_string_copy(str);
149149

150150
Unlike ``GC_ADDREF()``, the ``zend_string_addref()`` function will handle immutable strings properly. However, the
151-
function that is used most often by far is ``zend_string_copy()``. This function also only increments the refcount,
151+
function that is used most often by far is ``zend_string_copy()``. This function not only increments the refcount,
152152
but also returns the original string. This makes code more readable in practice.
153153

154154
While a ``zend_string_dup()`` function that performs an actual copy of the string (rather than only a refcount

0 commit comments

Comments
 (0)