Skip to content

Commit

Permalink
Fix docs typo
Browse files Browse the repository at this point in the history
  • Loading branch information
raskad committed Jan 23, 2022
1 parent 6210f32 commit d75a715
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions boa/src/context.rs
Original file line number Diff line number Diff line change
Expand Up @@ -914,9 +914,9 @@ impl Context {
Gc::new(compiler.finish())
}

/// Call the VM with the `CodeBlock` and return the result.
/// Call the VM with a `CodeBlock` and return the result.
///
/// Since this functions receives a `Gc<CodeBlock`, cloning the code is very cheap, since it's
/// Since this function receives a `Gc<CodeBlock>`, cloning the code is very cheap, since it's
/// just a pointer copy. Therefore, if you'd like to execute the same `CodeBlock` multiple
/// times, there is no need to re-compile it, and you can just call `clone()` on the
/// `Gc<CodeBlock>` returned by the [`Self::compile()`] function.
Expand Down

0 comments on commit d75a715

Please sign in to comment.