Skip to content

Commit f7bc31c

Browse files
committed
Update README.md
Fixed mistake in code.
1 parent e4b28c7 commit f7bc31c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ UnitValue val = GetUnknownValueAndUnit();
7777

7878
// Returns false if conversion was not possible.
7979
double cm;
80-
val.TryConvert(LengthUnit.Centimeter, out cm);
80+
val.TryConvert(Unit.Centimeter, out cm);
8181
```
8282

8383
Helper Methods to Construct Measurements

0 commit comments

Comments
 (0)