From bae89675b267c1ebebbc105a0e3da4ef22896be9 Mon Sep 17 00:00:00 2001 From: Alan Date: Wed, 19 Jan 2022 19:12:39 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E9=94=99=E5=88=AB=E5=AD=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- book/contents/basic/ownership/ownership.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/book/contents/basic/ownership/ownership.md b/book/contents/basic/ownership/ownership.md index 33dd5ddd..30e073d7 100644 --- a/book/contents/basic/ownership/ownership.md +++ b/book/contents/basic/ownership/ownership.md @@ -46,7 +46,7 @@ int* foo() { #### 堆 -与栈不同,对于大小位置或者可能变化的数据,我们需要将它存储在堆上。 +与栈不同,对于大小未知或者可能变化的数据,我们需要将它存储在堆上。 当向堆上放入数据时,需要请求一定大小的内存空间。操作系统在堆的某处找到一块足够大的空位,把它标记为已使用,并返回一个表示该位置地址的 **指针**, 该过程被称为 **在堆上分配内存**,有时简称为 “分配”(allocating)。