diff --git a/actionpack/lib/action_view/helpers/url_helper.rb b/actionpack/lib/action_view/helpers/url_helper.rb
index 168a3bdbc0..fde4bfa4ce 100644
--- a/actionpack/lib/action_view/helpers/url_helper.rb
+++ b/actionpack/lib/action_view/helpers/url_helper.rb
@@ -162,7 +162,7 @@ module ActionView
#
# You can use a block as well if your link target is hard to fit into the name parameter. ERb example:
#
- # <% link_to(@profile) do %>
+ # <%= link_to(@profile) do %>
# <%= @profile.name %> -- Check it out!
# <% end %>
# # =>