From 55dc41fe1001654bc813a3572dae985249b24eb1 Mon Sep 17 00:00:00 2001
From: xjm <xjm@65776.no-reply.drupal.org>
Date: Fri, 24 Feb 2017 15:24:08 +0000
Subject: [PATCH] Issue #2853684 by tameeshb, wturrell, chiranjeeb2410, krknth,
 Wim Leers, eojthebrave, leolando.tan, xjm: Update grammar of inline comments
 in \Drupal\Core\Render\Renderer::doRender

---
 core/lib/Drupal/Core/Render/Renderer.php | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/core/lib/Drupal/Core/Render/Renderer.php b/core/lib/Drupal/Core/Render/Renderer.php
index 4bbffc3e70b4..503359ef784e 100644
--- a/core/lib/Drupal/Core/Render/Renderer.php
+++ b/core/lib/Drupal/Core/Render/Renderer.php
@@ -320,9 +320,9 @@ protected function doRender(&$elements, $is_root_call = FALSE) {
         '#lazy_builder',
         '#cache',
         '#create_placeholder',
-        // These keys are not actually supported, but they are added automatically
-        // by the Renderer, so we don't crash on them; them being missing when
-        // their #lazy_builder callback is invoked won't surprise the developer.
+        // The keys below are not actually supported, but these are added
+        // automatically by the Renderer. Adding them as though they are
+        // supported allows us to avoid throwing an exception 100% of the time.
         '#weight',
         '#printed'
       ];
-- 
GitLab