Skip to content

Commit 47d20f2

Browse files
yhy1ujMq-b
authored andcommitted
Update 05内存模型与原子操作.md
拼写错误 Signed-off-by: 于洪洋 <[email protected]>
1 parent 01aafde commit 47d20f2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

md/05内存模型与原子操作.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ struct trivial_type {
228228
>
229229
> 最后强调一下:任何 [std::atomic](https://zh.cppreference.com/w/cpp/atomic/atomic) 类型,**初始化不是原子操作**。
230230
231-
### `st::atomic_flag`
231+
### `std::atomic_flag`
232232
233233
`std::atomic_flag` 是最简单的原子类型,这个类型的对象可以在两个状态间切换:**设置(true)**和**清除(false)**。它很简单,通常只是用作构建一些库设施,不会单独使用或直接面向普通开发者。
234234
@@ -815,4 +815,4 @@ RISC-V 采用的也是**弱序内存模型**(weakly-ordered memory model),
815815
816816
<!--
817817
以上 5 节是根据 cppreference 的顺序,我们参考 cppreference 的描述,并根据自己的想法和语言
818-
-->
818+
-->

0 commit comments

Comments
 (0)