Skip to content

Commit

Permalink
Fixes SI-5344.
Browse files Browse the repository at this point in the history
  • Loading branch information
hubertp committed May 7, 2012
1 parent e6d5d22 commit b7f92af
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/library/scala/collection/immutable/Range.scala
Expand Up @@ -327,16 +327,16 @@ object Range {
*/
def apply(start: Int, end: Int, step: Int): Range = new Range(start, end, step)

/** Make an range from `start` to `end` inclusive with step value 1.
/** Make a range from `start` until `end` (exclusive) with step value 1.
*/
def apply(start: Int, end: Int): Range = new Range(start, end, 1)

/** Make an inclusive range from start to end with given step value.
/** Make an inclusive range from `start` to `end` with given step value.
* @note step != 0
*/
@inline def inclusive(start: Int, end: Int, step: Int): Range.Inclusive = new Inclusive(start, end, step)

/** Make an inclusive range from start to end with step value 1.
/** Make an inclusive range from `start` to `end` with step value 1.
*/
@inline def inclusive(start: Int, end: Int): Range.Inclusive = new Inclusive(start, end, 1)

Expand Down

0 comments on commit b7f92af

Please sign in to comment.