diff --git a/.vscode/cspell.json b/.vscode/cspell.json new file mode 100644 index 0000000..6f153a5 --- /dev/null +++ b/.vscode/cspell.json @@ -0,0 +1,55 @@ +{ + "allowCompoundWords": true, + "minWordLength": 1, + "words": [ + "acq", + "bz2", + "cfgs", + "ctx", + "docsrs", + "dyn", + "env", + "eprintln", + "fmt", + "fn", + "fx", + "gc", + "headered", + "img", + "immut", + "impls", + "libc", + "LLM", + "Miri", + "MSRV", + "nar", + "nixos", + "nixpkgs", + "num", + "numtide", + "oxalica", + "pkgs", + "Planus", + "pointee", + "ptr", + "reborrow", + "reborrows", + "repr", + "rustc", + "str", + "sysinfo", + "triomphe", + "tt", + "UB", + "uncloneable", + "vec", + "vtable", + "vtables", + "xid" + ], + "flagWords": [ + "fomrat: format", + "fromat: format", + "hte: the" + ] +} \ No newline at end of file diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 0000000..ed82044 --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,6 @@ +{ + // This is to override user-specific dictionaries + "cSpell.userWords": [], + "cSpell.flagWords": [], + "cSpell.ignoreWords": [], +} \ No newline at end of file diff --git a/src/hooks/mod.rs b/src/hooks/mod.rs index c2d696a..e3e664a 100644 --- a/src/hooks/mod.rs +++ b/src/hooks/mod.rs @@ -562,7 +562,7 @@ impl Hooks { /// // Replace with different hooks /// let hooks2 = Hooks::new().attachment_collector(|| "second".to_string()); /// let previous = hooks2.replace(); - /// # unsafe { previous.unwrap().reclaim(); } // Clean up as miri does not like memory leaks + /// # unsafe { previous.unwrap().reclaim(); } // Clean up as Miri does not like memory leaks /// ``` pub fn replace(self) -> Option { self.leak().replace() @@ -617,7 +617,7 @@ impl Hooks { /// let old_hooks = Hooks::new().attachment_collector(|| "v2").replace(); /// /// // Option 1: Drop and leak (typical case) -/// # // We don't want to leak in the doctest, as miri will complain about a memory leak +/// # // We don't want to leak in the doctest, as Miri will complain about a memory leak /// # let saved_old_hooks = old_hooks; /// # let old_hooks = (); /// let _ = old_hooks;