From 03245c705e3878852fdf1c9ec5e1a2fdf962f864 Mon Sep 17 00:00:00 2001 From: lixianjing Date: Tue, 19 Dec 2023 17:56:18 +0800 Subject: [PATCH] fix api comments --- docs/changes.md | 3 +++ src/tkc/typed_array.h | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/docs/changes.md b/docs/changes.md index 076b1969fb..b3017ae583 100644 --- a/docs/changes.md +++ b/docs/changes.md @@ -1,5 +1,8 @@ # 最新动态 +2023/12/19 + * 修复API注释(感谢俊杰提供补丁) + 2023/12/18 * 修复lldb获取变量的时候返回为空值的问(感谢智明提供补丁) * 修复打包release资源路径不正常的问题(感谢智明提供补丁) diff --git a/src/tkc/typed_array.h b/src/tkc/typed_array.h index bbc9dc61e6..1cf45ec375 100644 --- a/src/tkc/typed_array.h +++ b/src/tkc/typed_array.h @@ -35,7 +35,7 @@ BEGIN_C_DECLS * * ```c * value_t v; - * typed_array_t* typed_array = typed_array_create(VALUE_TYPE_INT, 10); + * typed_array_t* a = typed_array_create(VALUE_TYPE_INT, 10); * typed_array_push(a, value_set_int(&v, 123)); * typed_array_push(a, value_set_int(&v, 234)); * ...