0
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2025-03-09 21:57:40 -04: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 Bartek Iwańczuk
parent d178ab6049
commit 40198a1504
No known key found for this signature in database
GPG key ID: 0C6BCDDC3B3AD750

View file

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