Skip to content

Commit c175894

Browse files
committed
fix typos
1 parent 930b932 commit c175894

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

unsafe-rawpointer/raw-pointer.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# 裸指针
22

3-
**Rust**通过限制智能指针的行为保障了编译时的安全,不过仍需要对指针做一些额外的操作。
3+
**Rust**通过限制智能指针的行为保障了编译时安全,不过仍需要对指针做一些额外的操作。
44

55
`*const T``*mut T`**Rust**中被称为“裸指针”。它允许别名,允许用来写共享所有权的类型,甚至是内存安全的共享内存类型如:`Rc<T>``Arc<T>`,但是赋予你更多权利的同时意味着你需要担当更多的责任:
66
* 不能保证指向有效的内存,甚至不能保证是非空的

0 commit comments

Comments
 (0)