From 1a961aa81616bbf1e24dc542c9edfae3be983a5c Mon Sep 17 00:00:00 2001 From: Aapo Alasuutari Date: Fri, 17 Jan 2025 21:14:55 +0200 Subject: [PATCH] typos --- GARBAGE_COLLECTOR.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/GARBAGE_COLLECTOR.md b/GARBAGE_COLLECTOR.md index 05858a68..16fbb039 100644 --- a/GARBAGE_COLLECTOR.md +++ b/GARBAGE_COLLECTOR.md @@ -300,7 +300,7 @@ the `into_nogc` method, this can be done: let a = a.unbind(); // No garbage collection or JS call can happen after this point. We no longer need the GcToken. let gc = gc.into_nogc(); -let a = a.bind(gc); // With this we're back to beign bound; temporary unbinding like this is okay. +let a = a.bind(gc); // With this we're back to being bound; temporary unbinding like this is okay. ``` **Bad example:** @@ -335,7 +335,7 @@ let a = a.scope(agent, gc.nogc()); ``` A `Scoped<'_, Value<'static>>` is valid for the entire call (at least) and are -trivially clonable (they're currently not `Copy` but there is no real reason +trivially cloneable (they're currently not `Copy` but there is no real reason they couldn't be). Creating one from a `Value` is however a non-trivial operation that always includes allocating new heap space (though this is amortized).