Skip to content

Commit

Permalink
Cleanup MatchData#begin
Browse files Browse the repository at this point in the history
  • Loading branch information
meh committed Oct 23, 2013
1 parent 5085928 commit 77b6f82
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions corelib/match_data.rb
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,9 @@ def begin(pos)
if (pos == 0 || pos == 1) {
return self._begin;
}
#{raise ArgumentError, 'MatchData#begin only supports 0th element'};
}

raise ArgumentError, 'MatchData#begin only supports 0th element'
end

def captures
Expand Down

0 comments on commit 77b6f82

Please sign in to comment.