chore: fix typos (#22677)

This commit is contained in:
cui fliter 2024-03-04 22:28:57 +08:00 committed by GitHub
parent 11db68ce96
commit d4b3b39cc0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 9 additions and 9 deletions

View file

@ -166,7 +166,7 @@ pub fn graph_valid(
}
}
/// Checks the lockfile against the graph and and exits on errors.
/// Checks the lockfile against the graph and exits on errors.
pub fn graph_lock_or_exit(graph: &ModuleGraph, lockfile: &mut Lockfile) {
for module in graph.modules() {
let source = match module {

View file

@ -319,7 +319,7 @@ pub fn main() {
let args: Vec<String> = env::args().collect();
// NOTE(lucacasonato): due to new PKU feature introduced in V8 11.6 we need to
// initalize the V8 platform on a parent thread of all threads that will spawn
// initialize the V8 platform on a parent thread of all threads that will spawn
// V8 isolates.
let future = async move {

View file

@ -524,7 +524,7 @@ impl ConditionalEventHandler for ReverseSearchHistoryEventHandler {
/// A custom tab key event handler
/// It uses a heuristic to determine if the user is requesting completion or if they want to insert an actual tab
/// The heuristic goes like this:
/// - If the last character before the cursor is whitespace, the the user wants to insert a tab
/// - If the last character before the cursor is whitespace, the user wants to insert a tab
/// - Else the user is requesting completion
struct TabEventHandler;
impl ConditionalEventHandler for TabEventHandler {

View file

@ -762,7 +762,7 @@ async fn run_tests_for_worker_inner(
// Poll event loop once, to allow all ops that are already resolved, but haven't
// responded to settle.
// TODO(mmastrac): we should provide an API to poll the event loop until no futher
// TODO(mmastrac): we should provide an API to poll the event loop until no further
// progress is made.
poll_event_loop(worker).await?;

View file

@ -497,7 +497,7 @@ pub async fn upgrade(
let archive_data = download_package(client, &download_url)
.await
.with_context(|| format!("Failed downloading {download_url}. The version you requested may not have been built for the current architechture."))?;
.with_context(|| format!("Failed downloading {download_url}. The version you requested may not have been built for the current architecture."))?;
log::info!("Deno is upgrading to version {}", &install_version);

View file

@ -289,7 +289,7 @@ pub fn op_http_set_promise_complete(external: *const c_void, status: u16) {
fn set_promise_complete(http: Rc<HttpRecord>, status: u16) {
// The Javascript code should never provide a status that is invalid here (see 23_response.js), so we
// will quitely ignore invalid values.
// will quietly ignore invalid values.
if let Ok(code) = StatusCode::from_u16(status) {
http.response_parts().status = code;
}
@ -686,7 +686,7 @@ fn set_response(
http.set_response_body(response_fn(compression));
// The Javascript code should never provide a status that is invalid here (see 23_response.js), so we
// will quitely ignore invalid values.
// will quietly ignore invalid values.
if let Ok(code) = StatusCode::from_u16(status) {
http.response_parts().status = code;
}

View file

@ -118,7 +118,7 @@ fn bundle_circular() {
.arg(&bundle_path)
.output()
.unwrap();
// check the output of the the bundle program.
// check the output of the bundle program.
assert_ends_with!(
std::str::from_utf8(&output.stdout).unwrap().trim(),
"f2\nf1",
@ -150,7 +150,7 @@ fn bundle_single_module() {
.arg(&bundle)
.output()
.unwrap();
// check the output of the the bundle program.
// check the output of the bundle program.
assert_ends_with!(
std::str::from_utf8(&output.stdout).unwrap().trim(),
"Hello world!",