Programming Ruby 3.2 (5th Edition): B1.0 page 158, line numbers --> lines numbered

@noelrappin

Already in previous edition !

Page 158, first paragraph after the code and its output, line 4 :

display line numbers 1 through 3 as well as those between a match of /eig/ and /nin/:

Reading the sentence

the following code uses the fact that the variable $. contains the current input line number to display line numbers 1 through 3

I was expecting to see line numbers in the output, but the code prints lines.

So I would say : “to display lines numbered 1 through 3”.

The sentence continues with

as well as those between a match of /eig/ and /nin/

as well as those refers to lines, not numbers.

Changed to “the first three lines”.

Thanks!