Skip to content

Commit 42264f3

Browse files
committed
Correct polyvar inferred type wording
1 parent 44c5938 commit 42264f3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pages/docs/manual/latest/polymorphic-variant.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ function render(myColor) {
104104

105105
</CodeTab>
106106

107-
That `myColor` parameter's type is inferred to be `[#red | #green | #yellow]`, and is unrelated to the `color` type. If you intended `myColor` to be of type `color`, annotate it as `myColor: color` in any of the places.
107+
That `myColor` parameter's type is inferred to be `#red`, `#green` or `#yellow`, and is unrelated to the `color` type. If you intended `myColor` to be of type `color`, annotate it as `myColor: color` in any of the places.
108108

109109
## Constructor Arguments
110110

0 commit comments

Comments
 (0)