Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 246ddd3

Browse filesBrowse files
committed
Merge pull request immutable-js#759 from langpavel/fix-range-toString
Fixed Range.toString step
2 parents ce3d144 + 7879f78 commit 246ddd3
Copy full SHA for 246ddd3

File tree

Expand file treeCollapse file tree

3 files changed

+3
-3
lines changed
Filter options
Expand file treeCollapse file tree

3 files changed

+3
-3
lines changed

‎dist/immutable.js

Copy file name to clipboardExpand all lines: dist/immutable.js
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -905,7 +905,7 @@
905905
}
906906
return 'Range [ ' +
907907
this._start + '...' + this._end +
908-
(this._step > 1 ? ' by ' + this._step : '') +
908+
(this._step !== 1 ? ' by ' + this._step : '') +
909909
' ]';
910910
};
911911

‎dist/immutable.min.js

Copy file name to clipboardExpand all lines: dist/immutable.min.js
+1-1Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎src/Range.js

Copy file name to clipboardExpand all lines: src/Range.js
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ export class Range extends IndexedSeq {
5353
}
5454
return 'Range [ ' +
5555
this._start + '...' + this._end +
56-
(this._step > 1 ? ' by ' + this._step : '') +
56+
(this._step !== 1 ? ' by ' + this._step : '') +
5757
' ]';
5858
}
5959

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.