diff --git a/core/misc/jquery.cookie.shim.es6.js b/core/misc/jquery.cookie.shim.es6.js
index 878394fae5a80571db1f2683694945614d4c316a..0e41742491d51509f2df688cef937e626ef617ec 100644
--- a/core/misc/jquery.cookie.shim.es6.js
+++ b/core/misc/jquery.cookie.shim.es6.js
@@ -115,7 +115,7 @@
    *   The name of the cookie.
    * @param {string|Object|Function|undefined} value
    *   A js-cookie converter callback when used as a getter. This callback must
-   *   be a function when using this shim for backwards-compatiblity with
+   *   be a function when using this shim for backwards-compatibility with
    *   jquery.cookie. When used as a setter, value is the string or JSON object
    *   to be used as the cookie value.
    * @param {Object|undefined} options
diff --git a/core/modules/rdf/tests/src/Traits/RdfParsingTrait.php b/core/modules/rdf/tests/src/Traits/RdfParsingTrait.php
index 2e1d80204a16e15ee2be0c4e600e77debfaac5a1..143e658323bf01c1dba34f496c3881ba733d79cd 100644
--- a/core/modules/rdf/tests/src/Traits/RdfParsingTrait.php
+++ b/core/modules/rdf/tests/src/Traits/RdfParsingTrait.php
@@ -5,7 +5,7 @@
 use Drupal\Core\Url;
 
 /**
- * Override \EasyRdf_ParsedUri for PHP 7.4 compatibilty.
+ * Override \EasyRdf_ParsedUri for PHP 7.4 compatibility.
  *
  * @todo https://www.drupal.org/project/drupal/issues/3110972 Remove this work
  *   around.