diff --git a/railties/lib/rails/paths.rb b/railties/lib/rails/paths.rb
index <HASH>..<HASH> 100644
--- a/railties/lib/rails/paths.rb
+++ b/railties/lib/rails/paths.rb
@@ -24,7 +24,7 @@ module Rails
     #
     # Notice that when you add a path using +add+, the path object created already
     # contains the path with the same path value given to +add+. In some situations,
-    # you may not want this behavior, so you can give +:with+ as option.
+    # you may not want this behavior, so you can give <tt>:with</tt> as option.
     #
     #   root.add "config/routes", with: "config/routes.rb"
     #   root["config/routes"].inspect # => ["config/routes.rb"]
Fix rdoc markup [ci skip]

Wrapping symbols with + does not work, we must use <tt> instead.