From 07436f7031369d7abd37fcbdae89923e36cfc53c Mon Sep 17 00:00:00 2001 From: Lorenzo Zabot Date: Thu, 18 Apr 2024 09:51:47 +0200 Subject: [PATCH] Prompt specifiers documentation improvements --- lib/irb.rb | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/irb.rb b/lib/irb.rb index ab50c797c..f7019ab0e 100644 --- a/lib/irb.rb +++ b/lib/irb.rb @@ -656,8 +656,10 @@ # * `%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 `%`. # #