diff --git a/includes/common.inc b/includes/common.inc index b6e2fc9..ffdabc4 100644 --- a/includes/common.inc +++ b/includes/common.inc @@ -6576,7 +6576,7 @@ function element_children(&$elements, $sort = FALSE) { else { $weight = 0; } - // Supports weight with up to three digit precision and conserve the + // Support weights with up to three digit precision and conserve the // insertion order. $child_weights[$key] = floor($weight * 1000) + $i / $count; } diff --git a/modules/simpletest/tests/common.test b/modules/simpletest/tests/common.test index ba6253f..1d88220 100644 --- a/modules/simpletest/tests/common.test +++ b/modules/simpletest/tests/common.test @@ -1999,7 +1999,7 @@ class DrupalRenderTestCase extends DrupalWebTestCase { ); $expected = array('child3', 'child1', 'child2', 'child5', 'child4'); - $this->assertEqual($expected, element_children($element_mixed_weight, TRUE), 'Orders of Elemenets with same weights are kept.'); + $this->assertEqual($expected, element_children($element_mixed_weight, TRUE), 'Order of elements with the same weight is preserved.'); } /**