diff --git a/lib/irb.rb b/lib/irb.rb
index 6887d5596e..c9c5b1561e 100644
--- a/lib/irb.rb
+++ b/lib/irb.rb
@@ -102,10 +102,13 @@ require_relative "irb/easter-egg"
#
# == Configuration
#
-# IRB reads from ~/.irbrc
when it's invoked.
-#
-# If ~/.irbrc
doesn't exist, +irb+ will try to read in the following order:
+# IRB reads a personal initialization file when it's invoked.
+# IRB searches a file in the following order and loads the first one found.
#
+# * +$IRBRC+ (if +$IRBRC+ is set)
+# * +$XDG_CONFIG_HOME/irb/irbrc+ (if +$XDG_CONFIG_HOME+ is set)
+# * +~/.irbrc+
+# * +.config/irb/irbrc+
# * +.irbrc+
# * +irb.rc+
# * +_irbrc+