diff --git a/actionpack/lib/action_dispatch/routing/redirection.rb b/actionpack/lib/action_dispatch/routing/redirection.rb
index <HASH>..<HASH> 100644
--- a/actionpack/lib/action_dispatch/routing/redirection.rb
+++ b/actionpack/lib/action_dispatch/routing/redirection.rb
@@ -68,8 +68,8 @@ module ActionDispatch
       # return value.
       #
       #   match 'jokes/:number', :to => redirect { |params, request|
-      #     path = (params[:number].to_i.even? ? "/wheres-the-beef" : "/i-love-lamp")
-      #     "http://#{request.host_with_port}#{path}"
+      #     path = (params[:number].to_i.even? ? "wheres-the-beef" : "i-love-lamp")
+      #     "http://#{request.host_with_port}/#{path}"
       #   }
       #
       # Note that the `do end` syntax for the redirect block wouldn't work, as Ruby would pass
let's keep the slash in the return value instead of the path variable [ci skip]