diff --git a/actionpack/lib/action_controller/metal/redirecting.rb b/actionpack/lib/action_controller/metal/redirecting.rb
index 67c198d150..11d462855d 100644
--- a/actionpack/lib/action_controller/metal/redirecting.rb
+++ b/actionpack/lib/action_controller/metal/redirecting.rb
@@ -85,7 +85,7 @@ module ActionController
# * :fallback_location - The default fallback location that will be used on missing +Referer+ header.
# * :allow_other_host - Allow or disallow redirection to the host that is different to the current host, defaults to true.
#
- # All other options that can be passed to redirect_to are accepted as
+ # All other options that can be passed to #redirect_to are accepted as
# options and the behavior is identical.
def redirect_back(fallback_location:, allow_other_host: true, **args)
referer = request.headers["Referer"]
diff --git a/activerecord/lib/active_record/persistence.rb b/activerecord/lib/active_record/persistence.rb
index fd84007023..bfb73ae5f5 100644
--- a/activerecord/lib/active_record/persistence.rb
+++ b/activerecord/lib/active_record/persistence.rb
@@ -514,7 +514,7 @@ module ActiveRecord
#
# To enforce the object's +before_destroy+ and +after_destroy+
# callbacks or any :dependent association
- # options, use #destroy.
+ # options, use #destroy.
def delete
_delete_row if persisted?
@destroyed = true