diff --git a/lib/net/imap/sasl/stringprep.rb b/lib/net/imap/sasl/stringprep.rb
index 32d255572..b352b3683 100644
--- a/lib/net/imap/sasl/stringprep.rb
+++ b/lib/net/imap/sasl/stringprep.rb
@@ -26,6 +26,9 @@ def self.[](table)
#
# Also checks bidirectional characters, when bidi: true, which may
# raise a BidiStringError.
+ #
+ # +profile+ is an optional string which will be added to any exception that
+ # is raised (it does not affect behavior).
def check_prohibited!(string, *tables, bidi: false, profile: nil)
tables = TABLE_TITLES.keys.grep(/^C/) if tables.empty?
tables |= %w[C.8] if bidi
@@ -47,10 +50,11 @@ def check_prohibited!(string, *tables, bidi: false, profile: nil)
# RandALCat character MUST be the last character of the string.
#
# This is usually combined with #check_prohibited!, so table "C.8" is only
- # checked when +c_8: true+.
+ # checked when c_8: true.
#
# Raises either ProhibitedCodepoint or BidiStringError unless all
- # requirements are met.
+ # requirements are met. +profile+ is an optional string which will be
+ # added to any exception that is raised (it does not affect behavior).
def check_bidi!(string, c_8: false, profile: nil)
check_prohibited!(string, "C.8", profile: profile) if c_8
if BIDI_FAILS_REQ2.match?(string)