diff --git a/core/lib/Drupal/Core/Config/Entity/Query/QueryFactory.php b/core/lib/Drupal/Core/Config/Entity/Query/QueryFactory.php
index 35bc2fd..e970819 100644
--- a/core/lib/Drupal/Core/Config/Entity/Query/QueryFactory.php
+++ b/core/lib/Drupal/Core/Config/Entity/Query/QueryFactory.php
@@ -69,7 +69,7 @@ public function get($entity_type, $conjunction, EntityManager $entity_manager) {
    *   The query object that can query the given entity type.
    */
    public function getAggregate($entity_type, $conjunction, EntityManager $entity_manager) {
-      throw new QueryException('Aggregation over configuration enitties is not supported');
+      throw new QueryException('Aggregation over configuration entities is not supported');
   }
 
 }
diff --git a/core/modules/field_sql_storage/lib/Drupal/field_sql_storage/Entity/Query.php b/core/modules/field_sql_storage/lib/Drupal/field_sql_storage/Entity/Query.php
index 9d8ab5d..930d367 100644
--- a/core/modules/field_sql_storage/lib/Drupal/field_sql_storage/Entity/Query.php
+++ b/core/modules/field_sql_storage/lib/Drupal/field_sql_storage/Entity/Query.php
@@ -275,6 +275,18 @@ protected function result() {
     return $this->sqlQuery->execute()->fetchAllKeyed();
   }
 
+  /**
+   * Constructs a select expression for a given field and language.
+   *
+   * @param string $field
+   *   The name of the field being queried.
+   * @param string $langcode
+   *   The language code of the field.
+   *
+   * @return string
+   *   An expression that will select the given field for the given language in
+   *   a SELECT query, such as 'base_table.id'.
+   */
   protected function getSqlField($field, $langcode) {
     if (!isset($this->tables)) {
       $this->tables = new Tables($this->sqlQuery);
