From a98b69f1f08ede69f197c5ecc966d1a2ea82fee6 Mon Sep 17 00:00:00 2001 From: Frank Galligan Date: Wed, 25 Oct 2017 08:57:12 -0700 Subject: [PATCH 1/2] Spec: Clarfiy array element assignment. - Addresses a comment in KhronosGroup/glTF#1114 --- docs/spec/04.00.00.conventions.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/docs/spec/04.00.00.conventions.md b/docs/spec/04.00.00.conventions.md index 687bca6..217cfe6 100644 --- a/docs/spec/04.00.00.conventions.md +++ b/docs/spec/04.00.00.conventions.md @@ -94,7 +94,9 @@ represented using the notation `A == B` and is specified to mean the same as `A != B` and is specified to mean the same as `(A[ 0 ] != B[ 0 ] || A[ 1 ] != B[ 1 ])`. -The functions `assign`, `back`, `pop_back`, `push_back`, and `size` behave +Unless otherwise noted, array element assignment will increase the size of the array to include the element. Any remaining new elments will be uninitialized. + +The functions `assign`, `back`, `empty`, `pop_back`, `push_back`, and `size` behave similarly on arrays as it is defined for c++ std::vector. When a variable is said to be representable by a signed integer with `x` bits, From e00aab96906e8f6528217858cced98ce0f817e2c Mon Sep 17 00:00:00 2001 From: Frank Galligan Date: Wed, 25 Oct 2017 09:00:34 -0700 Subject: [PATCH 2/2] Fix spelling --- docs/spec/04.00.00.conventions.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/spec/04.00.00.conventions.md b/docs/spec/04.00.00.conventions.md index 217cfe6..11cc114 100644 --- a/docs/spec/04.00.00.conventions.md +++ b/docs/spec/04.00.00.conventions.md @@ -94,7 +94,7 @@ represented using the notation `A == B` and is specified to mean the same as `A != B` and is specified to mean the same as `(A[ 0 ] != B[ 0 ] || A[ 1 ] != B[ 1 ])`. -Unless otherwise noted, array element assignment will increase the size of the array to include the element. Any remaining new elments will be uninitialized. +Unless otherwise noted, array element assignment will increase the size of the array to include the element. Any remaining new elements will be uninitialized. The functions `assign`, `back`, `empty`, `pop_back`, `push_back`, and `size` behave similarly on arrays as it is defined for c++ std::vector.