Skip to content

Commit fd5df5a

Browse files
brettcannonguardrex
authored andcommitted
Make output match code in Active Patterns example (dotnet#2741)
The code uses full names for things like brightness while the original output only used initials.
1 parent f0b0bf7 commit fd5df5a

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

docs/fsharp/language-reference/active-patterns.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -53,20 +53,20 @@ The output of the above program is as follows:
5353

5454
```
5555
Red
56-
R: 255 G: 0 B: 0
57-
H: 0.000000 S: 1.000000 B: 0.500000
56+
Red: 255 Green: 0 Blue: 0
57+
Hue: 360.000000 Saturation: 1.000000 Brightness: 0.500000
5858
Black
59-
R: 0 G: 0 B: 0
60-
H: 0.000000 S: 0.000000 B: 0.000000
59+
Red: 0 Green: 0 Blue: 0
60+
Hue: 0.000000 Saturation: 0.000000 Brightness: 0.000000
6161
White
62-
R: 255 G: 255 B: 255
63-
H: 0.000000 S: 0.000000 B: 1.000000
62+
Red: 255 Green: 255 Blue: 255
63+
Hue: 0.000000 Saturation: 0.000000 Brightness: 1.000000
6464
Gray
65-
R: 128 G: 128 B: 128
66-
H: 0.000000 S: 0.000000 B: 0.501961
65+
Red: 128 Green: 128 Blue: 128
66+
Hue: 0.000000 Saturation: 0.000000 Brightness: 0.501961
6767
BlanchedAlmond
68-
R: 255 G: 235 B: 205
69-
H: 36.000000 S: 1.000000 B: 0.901961
68+
Red: 255 Green: 235 Blue: 205
69+
Hue: 36.000000 Saturation: 1.000000 Brightness: 0.901961
7070
```
7171

7272
In combination, these two ways of using active patterns enable you to partition and decompose data into just the appropriate form and perform the appropriate computations on the appropriate data in the form most convenient for the computation.

0 commit comments

Comments
 (0)