Skip to content

Commit

Permalink
Rename combinePowerString=>createPowerStringProperty phetsims/my-sola…
Browse files Browse the repository at this point in the history
  • Loading branch information
samreid committed Mar 16, 2023
1 parent 6935e3e commit d8361ec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/view/SolarSystemCommonTextNumberDisplay.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import StringUtils from '../../../phetcommon/js/util/StringUtils.js';
import solarSystemCommon from '../solarSystemCommon.js';

export default class SolarSystemCommonTextNumberDisplay {
public static combinePowerString( unitStringProperty: TReadOnlyProperty<string>, powerStringProperty: TReadOnlyProperty<number> ): TReadOnlyProperty<string> {
public static createPowerStringProperty( unitStringProperty: TReadOnlyProperty<string>, powerStringProperty: TReadOnlyProperty<number> ): TReadOnlyProperty<string> {
return new DerivedProperty( [ unitStringProperty, powerStringProperty, SolarSystemCommonStrings.pattern.unitsPowerStringProperty ], ( string, power, pattern ) => {
if ( power === 1 ) {
return string;
Expand Down

0 comments on commit d8361ec

Please sign in to comment.