Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion concepts/ranges/about.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ You can also use negative indexes to get the substring from the end of the strin

```ruby
"Hello World"[-5..-1] # => "World"
"Hello World"[6..-4] # => "Wor"
"Hello World"[6..-4] # => "Wo"
```

## Range methods
Expand Down
2 changes: 1 addition & 1 deletion concepts/ranges/introduction.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ You can also use negative indexes to get the substring from the end of the strin

```ruby
"Hello World"[-5..-1] # => "World"
"Hello World"[6..-4] # => "Wor"
"Hello World"[6..-4] # => "Wo"
```

## Range methods
Expand Down
6 changes: 3 additions & 3 deletions exercises/concept/chess-game/.docs/instructions.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,13 @@ The ranks are the rows of the board, and are numbered from 1 to 8.
The game will also have to store the files of the board.
The files are the columns of the board and are identified by the letters A to H.

Define the `Chess::Ranks` and `Chess::Files` constants that store the range of ranks and files respectively.
Define the `Chess::RANKS` and `Chess::FILES` constants that store the range of ranks and files respectively.

```ruby
Chess::Ranks
Chess::RANKS
# => 1..8

Chess::Files
Chess::FILES
# => 'A'..'H'
```

Expand Down
2 changes: 1 addition & 1 deletion exercises/concept/chess-game/.docs/introduction.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ You can also use negative indexes to get the substring from the end of the strin

```ruby
"Hello World"[-5..-1] # => "World"
"Hello World"[6..-4] # => "Wor"
"Hello World"[6..-4] # => "Wo"
```

## Range methods
Expand Down