Skip to content

Commit

Permalink
Fix wrong comment.
Browse files Browse the repository at this point in the history
  • Loading branch information
crisbeto committed Jan 19, 2017
1 parent 1890734 commit 2740172
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lib/slider/slider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -249,8 +249,8 @@ export class MdSlider implements ControlValueAccessor {

/** The value to be used for display purposes. */
get displayValue(): string|number {
// Note that this could be improved further by rounding something like 0.999 to 0.99 or
// 0.899 to 0.89, however it is very performance sensitive, because it gets called on
// Note that this could be improved further by rounding something like 0.999 to 1 or
// 0.899 to 0.9, however it is very performance sensitive, because it gets called on
// every change detection cycle.
if (this._roundLabelTo && this.value % 1 !== 0) {
return this.value.toFixed(this._roundLabelTo);
Expand Down

0 comments on commit 2740172

Please sign in to comment.