Skip to content

Commit 71c86e2

Browse files
committed
update docusaurus
1 parent 153558e commit 71c86e2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

website/src/pages/index.mdx

+1-1
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ Consider benefits when explicitly typing the return value of a function:
150150

151151
### Discriminated union
152152

153-
If there is only one TypeScript feature to choose, embrace discriminated unions.
153+
If there's only one TypeScript feature to choose from, embrace discriminated unions.
154154

155155
Discriminated unions are a powerful concept to model complex data structures and improve type safety, leading to clearer and less error-prone code.
156156
You may encounter discriminated unions under different names such as tagged unions or sum types in various programming languages as C, Haskell, Rust (in conjunction with pattern-matching).

0 commit comments

Comments
 (0)