Skip to content

Commit

Permalink
update README
Browse files Browse the repository at this point in the history
  • Loading branch information
hit9 committed Apr 30, 2024
1 parent 454ce0f commit b9025bf
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ An example for a simple overview of the bitproto schema grammar:
proto pen
// Constant value
const SIZE = 2 * 3;
const PEN_ARRAY_SIZE = 2 * 3;
// Bit level enum.
enum Color : uint3 {
Expand All @@ -105,7 +105,7 @@ message Pen {
message Box {
// Fixed-size array
Pen[SIZE] pens = 1;
Pen[PEN_ARRAY_SIZE] pens = 1;
}
```

Expand All @@ -121,7 +121,7 @@ We can have an overview of the generated code for the C language:

```c
// Constant value
#define SIZE 6
#define PEN_ARRAY_SIZE 6

// Bit level enum.
typedef uint8_t Color; // 3bit
Expand Down

0 comments on commit b9025bf

Please sign in to comment.