Skip to content

Commit dadbeec

Browse files
authored
Merge pull request #92 from AkaShark/main
Update memory.md
2 parents af06562 + 5169235 commit dadbeec

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/memory.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@ int* restrict p;
234234
p = malloc(sizeof(int));
235235
```
236236

237-
上面示例中,声明指针变量`p`时,加入了`restrict`说明符,使得`p`变成了受限指针。后面,当`p`指向`malloc()`函数返回的一块内存区域,就味着,该区域只有通过`p`来访问,不存在其他访问方式。
237+
上面示例中,声明指针变量`p`时,加入了`restrict`说明符,使得`p`变成了受限指针。后面,当`p`指向`malloc()`函数返回的一块内存区域,就意味着,该区域只有通过`p`来访问,不存在其他访问方式。
238238

239239
```c
240240
int* restrict p;

0 commit comments

Comments
 (0)