diff options
author | Lorenzo Zabot <lorenzozabot@gmail.com> | 2024-04-18 12:33:19 +0200 |
---|---|---|
committer | git <svn-admin@ruby-lang.org> | 2024-04-18 10:33:23 +0000 |
commit | 2e978c2cb30ccd64833a5663622bccfe5bf3e8ca (patch) | |
tree | 4d4e3958b740d3f480a296b35bece5de1d3a7f24 /lib | |
parent | 3a7846b1aa4c10d86dc5a91c6df94f89d60bb0c3 (diff) |
[ruby/irb] Prompt specifiers documentation improvements
(https://github.com/ruby/irb/pull/926)
https://github.com/ruby/irb/commit/e8ea8f253d
Diffstat (limited to 'lib')
-rw-r--r-- | lib/irb.rb | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/irb.rb b/lib/irb.rb index ab50c797c7..f7019ab0ea 100644 --- a/lib/irb.rb +++ b/lib/irb.rb @@ -656,8 +656,10 @@ require_relative "irb/pager" # * `%m`: the value of `self.to_s`. # * `%M`: the value of `self.inspect`. # * `%l`: an indication of the type of string; one of `"`, `'`, `/`, `]`. -# * `*NN*i`: Indentation level. -# * `*NN*n`: Line number. +# * `%NNi`: Indentation level. NN is a 2-digit number that specifies the number +# of digits of the indentation level (03 will result in 001). +# * `%NNn`: Line number. NN is a 2-digit number that specifies the number +# of digits of the line number (03 will result in 001). # * `%%`: Literal `%`. # # |