Skip to content

Commit

Permalink
Fix broken sentence in discriminated-unions.md (dotnet#1322)
Browse files Browse the repository at this point in the history
  • Loading branch information
sgronblo authored and cartermp committed Dec 12, 2016
1 parent 8076ae6 commit 0293858
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/fsharp/language-reference/discriminated-unions.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ type Shape =
| Prism of width : float * float * height : float
```

The preceding code declares a discriminated union Shape, which can have values of any of three cases: Rectangle, Circle, and Prism. Each case has a different set of fields. The Rectangle case has two named fields, both of type `float`, that have the names width and length. The Circle case has just one named field, radius. The Prism case has three fields, two of which are named Unnamed fields are referred to as anonymous fields.
The preceding code declares a discriminated union Shape, which can have values of any of three cases: Rectangle, Circle, and Prism. Each case has a different set of fields. The Rectangle case has two named fields, both of type `float`, that have the names width and length. The Circle case has just one named field, radius. The Prism case has three fields, two of which (width and height) are named fields. Unnamed fields are referred to as anonymous fields.

You construct objects by providing values for the named and anonymous fields according to the following examples.

Expand Down Expand Up @@ -117,4 +117,4 @@ Discriminated unions work well if the nodes in the tree are heterogeneous. In th
When this code is executed, the value of `result` is 5.

## See Also
[F# Language Reference](index.md)
[F# Language Reference](index.md)

0 comments on commit 0293858

Please sign in to comment.