Skip to content

Commit 961a99a

Browse files
committed
修正 sdsfree 函数的注释,感谢 @lingdecong 的提醒。
1 parent 45979fd commit 961a99a

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/sds.c

+3-2
Original file line numberDiff line numberDiff line change
@@ -104,8 +104,9 @@ sds sdsdup(const sds s) {
104104
}
105105

106106
/*
107-
* 释放 sds 所对应的 sdshdr 结构的内存
108-
* 给定 sds 必须为 NULL
107+
* 释放 sds 所对应的 sdshdr 结构的内存。
108+
*
109+
* 如果 s 为 NULL ,那么不做动作。
109110
*
110111
* T = O(N)
111112
*/

0 commit comments

Comments
 (0)