docs(union): fix typo

This commit is contained in:
ruanyf
2021-09-08 17:17:02 +08:00
parent 2564d8c4ae
commit c99b348275

View File

@@ -86,7 +86,7 @@ printf("%f\n", x.b); // 3.141592
printf("%f\n", *foo_float_p); // 3.141592
```
上面示例中,`x`是 foo 结构的指针,它的数据类型完全由当前赋值的属性决定。
上面示例中,`&x`是 foo 结构的指针,它的数据类型完全由当前赋值的属性决定。
typedef 命令可以为 Union 数据类型起别名。