Skip to content

Commit

Permalink
Update MeasureUnit documentation to clarify applicability of constant…
Browse files Browse the repository at this point in the history
… denominator method
  • Loading branch information
younies committed Jan 20, 2025
1 parent 82f5fc1 commit ef4d399
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions icu4c/source/i18n/unicode/measunit.h
Original file line number Diff line number Diff line change
Expand Up @@ -555,8 +555,8 @@ class U_I18N_API MeasureUnit: public UObject {
/**
* Creates a new MeasureUnit with a specified constant denominator.
*
* This method is applicable only to COMPOUND units. If invoked on a
* SINGLE or MIXED unit, an error will be set in the status.
* This method is applicable only to COMPOUND and SINGLE units. If invoked on a
* MIXED unit, an error will be set in the status.
*
* NOTE: If the constant denominator is set to 0, it means that you are removing
* the constant denominator.
Expand All @@ -575,12 +575,12 @@ class U_I18N_API MeasureUnit: public UObject {
* - For the unit "liter-per-1000-kiloliter", the constant denominator is 1000.
* - For the unit "liter-per-kilometer", the constant denominator is zero.
*
* This method is applicable only to COMPOUND units. If invoked on a SINGLE or
* MIXED unit, an error will be set in the status.
* This method is applicable only to COMPOUND and SINGLE units. If invoked on
* a MIXED unit, an error will be set in the status.
*
* NOTE: If no constant denominator exists, the method returns 0.
*
* @param status Set if this is not a COMPOUND unit or if another error occurs.
* @param status Set if this is not a COMPOUND or SINGLE unit or if another error occurs.
* @return The value of the constant denominator.
* @draft ICU 77
*/
Expand Down

0 comments on commit ef4d399

Please sign in to comment.