Skip to content

Commit

Permalink
Merge pull request #459 from stepchowfun/indentation
Browse files Browse the repository at this point in the history
Fix the indentation in one of the example schemas
  • Loading branch information
stepchowfun authored Jan 20, 2024
2 parents c3ccaf9 + 8b4f245 commit 3b26125
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -493,24 +493,24 @@ Each code generator produces a single self-contained source file regardless of t
- The generated functions never throw exceptions when given well-typed arguments. The `deserialize` functions can return an `Error` to signal failure, and TypeScript requires callers to acknowledge that possibility.
- The generated code exports a function called `unreachable` which can be used to perform exhaustive pattern matching. For example, suppose you have the following schema:

```
```perl
struct Square {
sideLength: F64 = 0
sideLength: F64 = 0
}

struct Rectangle {
width: F64 = 0
height: F64 = 1
width: F64 = 0
height: F64 = 1
}

struct Circle {
radius: F64 = 0
radius: F64 = 0
}

choice Shape {
square: Square = 0
rectangle: Rectangle = 1
circle: Circle = 2
square: Square = 0
rectangle: Rectangle = 1
circle: Circle = 2
}
```

Expand Down

0 comments on commit 3b26125

Please sign in to comment.