summaryrefslogtreecommitdiff
path: root/lib/rdoc/context
diff options
context:
space:
mode:
authorYusuke Endoh <[email protected]>2022-02-20 20:45:53 +0900
committergit <[email protected]>2022-02-22 17:08:52 +0900
commitae8a8b184e6d7400470669ed7557842902019d36 (patch)
tree29512791d28b3770d312eb46d89d18514a3f9e9b /lib/rdoc/context
parenta49aae2c5e3786e5ac9a879772e53a6a731ec12f (diff)
[ruby/rdoc] Prefer `require 'cgi/util'` instead of `require 'cgi'`
RDoc is using only CGI.escape, escapeHTML, and unescape. We don't have to load the whole source code of cgi gem. https://github.com/ruby/rdoc/commit/d096222cc2
Diffstat (limited to 'lib/rdoc/context')
-rw-r--r--lib/rdoc/context/section.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/rdoc/context/section.rb b/lib/rdoc/context/section.rb
index 5fef4a9ffc..c316efe99f 100644
--- a/lib/rdoc/context/section.rb
+++ b/lib/rdoc/context/section.rb
@@ -1,4 +1,6 @@
# frozen_string_literal: true
+require 'cgi/util'
+
##
# A section of documentation like:
#