Renamed to_pretty to to_human in accordance with Currency.to_human.

This commit is contained in:
Stefan Thomas
2012-11-23 20:14:34 -08:00
parent 731abf0140
commit 9f44aff370

View File

@@ -453,12 +453,12 @@ Amount.prototype.to_text = function(allow_nan) {
* Format only value in a human-readable format.
*
* @example
* var pretty = amount.to_pretty({precision: 2});
* var pretty = amount.to_human({precision: 2});
*
* @param opts Options for formatter.
* @param opts.precision {Number} Max. number of digits after decimal point.
*/
Amount.prototype.to_pretty = function (opts)
Amount.prototype.to_human = function (opts)
{
opts = opts || {};