Skip to content

Commit 4e94cb9

Browse files
Update misc_docs/syntax/language_polyvar.mdx
Co-authored-by: Patrick Ecker <[email protected]>
1 parent e5f2089 commit 4e94cb9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

misc_docs/syntax/language_polyvar.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ category: "languageconstructs"
88

99
[Polymorphic variants](/docs/manual/latest/polymorphic-variant) (or _poly variants_) are the structurally typed equivalent of [variants](/docs/manual/latest/variant).
1010

11-
Their usage doesn't require any explicit type definition, and they not coupled to any specific module. The compiler will infer the type on demand, and compare poly variants by their value, instead of their type name.
11+
In comparison to nominally typed variants, their values don't require any explicit type definition, and are not coupled to any specific module. The compiler will infer the type on demand, and compare poly variants by their value, instead of their type name.
1212

1313
However, using the `[ #value ]` syntax you can to define a _closed poly variant type_ with an exact set of values, known as constructors.
1414

0 commit comments

Comments
 (0)