From 1322d443cb160e65b567ed7764ff1e1448079a97 Mon Sep 17 00:00:00 2001 From: Allen Rakhamimov <97687960+ARakhamimov@users.noreply.github.com> Date: Wed, 26 Jun 2024 23:43:56 -0400 Subject: [PATCH] Update webgpu-memory-layout.md (#130) minor spelling correction: "were" --> "where" in "Its parameters are subarray(begin, end) were end is not included." --- webgpu/lessons/webgpu-memory-layout.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webgpu/lessons/webgpu-memory-layout.md b/webgpu/lessons/webgpu-memory-layout.md index 38dcade5..e7e676b5 100644 --- a/webgpu/lessons/webgpu-memory-layout.md +++ b/webgpu/lessons/webgpu-memory-layout.md @@ -154,7 +154,7 @@ Further, every `TypedArray` has the following properties And `TypedArray`s have various methods, many are similar to `Array` but one that is not is `subarray`. It creates a new `TypedArray` view -of the same type. Its parameters are `subarray(begin, end)` were +of the same type. Its parameters are `subarray(begin, end)` where `end` is not included. So `someTypedArray.subarray(5, 10)` makes a new `TypedArray` of **the same `ArrayBuffer`** of elements 5 to 9 of `someTypedArray`.