Skip to content

Commit

Permalink
fix(expr): fix struct to union
Browse files Browse the repository at this point in the history
  • Loading branch information
Water-Melon committed Mar 18, 2024
1 parent e3eaffa commit 0139fe5
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docs/book/cn/expr.md
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion docs/book/en/expr.md
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion include/mln_expr.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 0139fe5

Please sign in to comment.