From 0139fe5b924669305357a4b00b255a59c87ab10f Mon Sep 17 00:00:00 2001 From: Water-Melon Date: Mon, 18 Mar 2024 04:23:45 +0000 Subject: [PATCH] fix(expr): fix `struct` to `union` --- docs/book/cn/expr.md | 2 +- docs/book/en/expr.md | 2 +- include/mln_expr.h | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/book/cn/expr.md b/docs/book/cn/expr.md index a9a2ebe..4caa4e6 100644 --- a/docs/book/cn/expr.md +++ b/docs/book/cn/expr.md @@ -54,7 +54,7 @@ typedef enum { typedef struct { mln_expr_typ_t type; - struct { + union { mln_u8_t b; mln_s64_t i; double r; diff --git a/docs/book/en/expr.md b/docs/book/en/expr.md index 8f262c2..dd8213e 100644 --- a/docs/book/en/expr.md +++ b/docs/book/en/expr.md @@ -54,7 +54,7 @@ typedef enum { typedef struct { mln_expr_typ_t type; - struct { + union { mln_u8_t b; mln_s64_t i; double r; diff --git a/include/mln_expr.h b/include/mln_expr.h index b286e46..0a0e958 100644 --- a/include/mln_expr.h +++ b/include/mln_expr.h @@ -25,7 +25,7 @@ typedef enum { typedef struct { mln_expr_typ_t type; - struct { + union { mln_u8_t b; mln_s64_t i; double r;