Skip to content

Commit e8ea8f2

Browse files
authored
Prompt specifiers documentation improvements (#926)
1 parent 7405a84 commit e8ea8f2

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

lib/irb.rb

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -656,8 +656,10 @@
656656
# * `%m`: the value of `self.to_s`.
657657
# * `%M`: the value of `self.inspect`.
658658
# * `%l`: an indication of the type of string; one of `"`, `'`, `/`, `]`.
659-
# * `*NN*i`: Indentation level.
660-
# * `*NN*n`: Line number.
659+
# * `%NNi`: Indentation level. NN is a 2-digit number that specifies the number
660+
# of digits of the indentation level (03 will result in 001).
661+
# * `%NNn`: Line number. NN is a 2-digit number that specifies the number
662+
# of digits of the line number (03 will result in 001).
661663
# * `%%`: Literal `%`.
662664
#
663665
#

0 commit comments

Comments
 (0)