`%o' is the old identifier name, `%n' is the new identifier name,
and `%s' is the scope of the renaming operation.
-The default value is the string \"Renaming \\\"%o\\\" to \\\"n\\\" in %s.\""
+The default value is the string \"Renaming \\\"%o\\\" to \\\"%n\\\" in %s.\""
:type '(choice (string :tag "Format string")
(const :tag "Disable" nil)))
Return a cons cell (IDENT . SCOPE), where IDENT is the identifier to
operate on and SCOPE is the scope of application. The meaning of both
IDENT and SCOPE are BACKEND-specific, but SCOPE is conventionally one of
-`expression', `defun', `file' or `project'."
+`expression', `defun', `buffer' or `project'."
(when-let ((sym (symbol-at-point)))
(cons (symbol-name sym) (if (project-current) 'project 'buffer))))
(cl-defgeneric refactor-backend-invalid-replacement (_backend _old _new _scope)
"Check if NEW is a valid replacement for OLD in SCOPE according to BACKEND.
-If it is invalid, for example if NEW is in conflict an identifier that
+If it is invalid, for example if NEW conflicts with an identifier that
is already in use, return a string to display as feedback to the user.
Otherwise, if the replacement is valid, return nil."
nil)