1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-12-22 23:34:47 -05:00
This commit is contained in:
EnokMan 2020-01-02 20:48:46 +08:00 committed by Ry Dahl
parent 55add2d366
commit d4f2fda623
5 changed files with 5 additions and 5 deletions

View file

@ -1558,7 +1558,7 @@ mod tests {
r.unwrap(),
DenoFlags {
subcommand: DenoSubcommand::Info,
argv: svec!["deno"], // TODO(ry) Ditto argv unnessary?
argv: svec!["deno"], // TODO(ry) Ditto argv unnecessary?
..DenoFlags::default()
}
);

View file

@ -78,7 +78,7 @@ pub enum FetchOnceResult {
Redirect(Url),
}
/// Asynchronously fetchs the given HTTP URL one pass only.
/// Asynchronously fetches the given HTTP URL one pass only.
/// If no redirect is present and no error occurs,
/// yields Code(code, maybe_content_type).
/// If redirect occurs, does not follow and

View file

@ -122,7 +122,7 @@ impl ModuleSpecifier {
Ok(ModuleSpecifier(url))
}
/// Converts a string representing an absulute URL into a ModuleSpecifier.
/// Converts a string representing an absolute URL into a ModuleSpecifier.
pub fn resolve_url(
url_str: &str,
) -> Result<ModuleSpecifier, ModuleResolutionError> {

View file

@ -509,7 +509,7 @@ impl Modules {
/// This is a tree structure representing the dependencies of a given module.
/// Use Modules::deps to construct it. The 'deps' member is None if this module
/// was already seen elsewher in the tree.
/// was already seen elsewhere in the tree.
#[derive(Debug, PartialEq)]
pub struct Deps {
pub name: String,

View file

@ -59,7 +59,7 @@ SharedQueue Binary Layout
}
function ops() {
// op id 0 is a special value to retreive the map of registered ops.
// op id 0 is a special value to retrieve the map of registered ops.
const opsMapBytes = Deno.core.send(0, new Uint8Array([]), null);
const opsMapJson = String.fromCharCode.apply(null, opsMapBytes);
return JSON.parse(opsMapJson);