]> granicus.if.org Git - icu/commitdiff
ICU-13677 Fixing typo in numberformatter.h documentation.
authorShane Carr <shane@unicode.org>
Tue, 8 May 2018 21:48:18 +0000 (21:48 +0000)
committerShane Carr <shane@unicode.org>
Tue, 8 May 2018 21:48:18 +0000 (21:48 +0000)
X-SVN-Rev: 41360

icu4c/source/i18n/unicode/numberformatter.h

index 6d709c4bf76328b78f870cff164a70759480acb1..c325ff345a3706ffbfcfbcb8d63f54a99d914bc3 100644 (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: