From 5ab326e05538a05124bc940d76a2db6500e2aa36 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=91=A3=E8=B6=85=E5=87=A1?= Date: Thu, 11 Nov 2021 15:11:44 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E4=B8=8D=E9=9C=80=E8=A6=81=20typedef?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/struct.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/struct.md b/docs/struct.md index 4ada0ad..085c837 100644 --- a/docs/struct.md +++ b/docs/struct.md @@ -378,7 +378,7 @@ for (struct node *cur = head; cur != NULL; cur = cur->next) { struct 还可以用来定义二进制位组成的数据结构,称为“位字段”(bit field),这对于操作底层的二进制数据非常有用。 ```c -typedef struct { +struct { unsigned int ab:1; unsigned int cd:1; unsigned int ef:1;