ICU-13677 Fixing typo in numberformatter.h documentation.

X-SVN-Rev: 41360
This commit is contained in:
Shane Carr 2018-05-08 21:48:18 +00:00
parent d123e65632
commit 3afec22e3a

View File

@ -37,7 +37,7 @@
* NumberFormatter::with()
* .notation(Notation::compactShort())
* .unit(CurrencyUnit("EUR", status))
* .precision(PrecisionPrecision:::maxDigits(2))
* .precision(Precision::maxDigits(2))
* .locale(...)
* .format(1234)
* .toString(); // €1.2K in en-US
@ -45,7 +45,7 @@
* // Create a formatter in a singleton for use later:
* static const LocalizedNumberFormatter formatter = NumberFormatter::withLocale(...)
* .unit(NoUnit::percent())
* .precision(PrecisionPrecision:::fixedFraction(3));
* .precision(Precision::fixedFraction(3));
* formatter.format(5.9831).toString(); // 5.983% in en-US
*
* // Create a "template" in a singleton but without setting a locale until the call site: