Skip to content

Commit b8276bf

Browse files
authored
Fix "Exact types" example in README.md to render correctly.
1 parent f1dbe3d commit b8276bf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ compile(file, path).then(ts =>
6060
|| Functions | `(A, B) => C` | `(a: A, b: B) => C` |
6161
|| Predicates (0) | `(a: A, b: B) => %checks` | `(a: A, b: B) => C` |
6262
|| Predicates (1) | `(a: A, b: B) => C %checks` | `(a: A, b: B) => C` |
63-
|| Exact types | `{| a: A |}` | `{ a: A }` (not expressible) |
63+
|| Exact types | `{\| a: A \|}` | `{ a: A }` (not expressible) |
6464
|| Indexers | `{ [A]: B }` | `{ [a: A]: B }` |
6565
|| Opaque types | `opaque type A = B` | `type A = B` (not expressible) |
6666
|| Variance | `interface A { +b: B, -c: C }` | `interface A { readonly b: B, c: C }` |

0 commit comments

Comments
 (0)