diff --git a/core/modules/views/src/Plugin/views/PluginBase.php b/core/modules/views/src/Plugin/views/PluginBase.php
index ca589809b232a8e532e224f92464a0e3cd55b5f3..fd7d3d0262c2784e99ad6ce8e34637134e13e1cb 100644
--- a/core/modules/views/src/Plugin/views/PluginBase.php
+++ b/core/modules/views/src/Plugin/views/PluginBase.php
@@ -18,7 +18,7 @@
 /**
  * Base class for any views plugin types.
  *
- * Via the @Plugin definition the plugin may specify a theme function or
+ * Via the plugin definition the plugin may specify a theme function or
  * template to be used for the plugin. It also can auto-register the theme
  * implementation for that file or function.
  * - theme: the theme implementation to use in the plugin. This must be the
diff --git a/core/modules/views/src/Plugin/views/access/AccessPluginBase.php b/core/modules/views/src/Plugin/views/access/AccessPluginBase.php
index c1a39114691e0ecbe55dafeb2cbb65fcf033d0e5..ee9b3636370a793a5b66d5c707faee35ebc5a197 100644
--- a/core/modules/views/src/Plugin/views/access/AccessPluginBase.php
+++ b/core/modules/views/src/Plugin/views/access/AccessPluginBase.php
@@ -32,11 +32,11 @@
  * plugin should have an annotation that includes the plugin's metadata, for
  * example:
  * @code
- * @Plugin(
- *   id = "deny_all",
- *   title = @Translation("No Access"),
- *   help = @Translation("Will not be accessible.")
- * )
+ * #[ViewsAccess(
+ *   id: "deny_all",
+ *   title: new TranslatableMarkup("No Access"),
+ *   help: new TranslatableMarkup("Will not be accessible.")
+ * )]
  * @endcode
  *
  * The definition should include the following keys: