diff --git a/actionpack/lib/action_view/helpers/text_helper.rb b/actionpack/lib/action_view/helpers/text_helper.rb
index fffc37ce9e6..698f4434ba2 100644
--- a/actionpack/lib/action_view/helpers/text_helper.rb
+++ b/actionpack/lib/action_view/helpers/text_helper.rb
@@ -90,7 +90,7 @@ module ActionView
# Highlights one or more +phrases+ everywhere in +text+ by inserting it into
# a :highlighter string. The highlighter can be specialized by passing :highlighter
- # as a single-quoted string with \1 where the phrase is to be inserted (defaults to
+ # as a single-quoted string with \1 where the phrase is to be inserted (defaults to
# '\1')
#
# ==== Examples
@@ -108,7 +108,9 @@ module ActionView
#
# You can still use highlight with the old API that accepts the
# +highlighter+ as its optional third parameter:
- # highlight('You searched for: rails', 'rails', '\1') # => You searched for: rails
+ #
+ # highlight('You searched for: rails', 'rails', '\1')
+ # # => You searched for: rails
def highlight(text, phrases, *args)
options = args.extract_options!
unless args.empty?