diff --git a/docs/chapter_data_structure/data_and_memory.md b/docs/chapter_data_structure/data_and_memory.md index 59dc053d2..0f087a156 100644 --- a/docs/chapter_data_structure/data_and_memory.md +++ b/docs/chapter_data_structure/data_and_memory.md @@ -92,9 +92,9 @@ comments: true ```typescript title="" /* 使用多种「基本数据类型」来初始化「数组」 */ - const numbers: number = [] - const characters: string = [] - const booleans: boolean = [] + const numbers: number[] = [] + const characters: string[] = [] + const booleans: boolean[] = [] ``` === "C"