fix: typo in error from GPUBuffer.prototype.mapAsync (#22913)

This commit is contained in:
guangwu 2024-03-14 21:28:27 +08:00 committed by GitHub
parent 10e592f954
commit cad79af785
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View File

@ -2040,7 +2040,7 @@ class GPUBuffer {
device.pushErrorPromise(promise);
const err = await promise;
if (err) {
throw new DOMException("validation error occured", "OperationError");
throw new DOMException("validation error occurred", "OperationError");
}
this[_state] = "mapped";
this[_mappingRange] = [offset, offset + rangeSize];

View File

@ -723,7 +723,7 @@ pub fn wildcard_match_detailed(
);
output_lines.push(colors::gray(annotate_whitespace(search_text)));
output_lines
.push("==== HAD UNKNOWN PRECEEDING TEXT ====".to_string());
.push("==== HAD UNKNOWN PRECEDING TEXT ====".to_string());
output_lines
.push(colors::red(annotate_whitespace(&current_text[..index])));
return WildcardMatchResult::Fail(output_lines.join("\n"));