1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-12-22 07:14:47 -05:00

refactor(core): fix typo in ops_builtin.rs (#16613)

This commit is contained in:
Ikko Ashimine 2022-11-24 23:22:39 +09:00 committed by GitHub
parent fe7e3a12ca
commit 04afc06b00
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -205,7 +205,7 @@ async fn op_read_all(
match maybe_max {
Some(max) if vec.len() >= max as usize => {
// no need to resize the vec, because the vec is already large enough
// to accomodate the maximum size of the read data.
// to accommodate the maximum size of the read data.
}
Some(max) if (max as usize) < vec.len() + grow_len => {
// grow the vec to the maximum size of the read data