From 25f11336621816cf05324bd1343dc58dc3ab26bb Mon Sep 17 00:00:00 2001 From: Marcelo Diop-Gonzalez Date: Sat, 12 Feb 2022 16:36:51 -0500 Subject: [PATCH] Fix a small typo in exception-safety.md --- src/exception-safety.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/exception-safety.md b/src/exception-safety.md index 3f92e641..ca1a3941 100644 --- a/src/exception-safety.md +++ b/src/exception-safety.md @@ -140,7 +140,7 @@ The basic idea is simple: if the comparison panics, we just toss the loose element in the logically uninitialized index and bail out. Anyone who observes the heap will see a potentially *inconsistent* heap, but at least it won't cause any double-drops! If the algorithm terminates normally, then this -operation happens to coincide precisely with the how we finish up regardless. +operation happens to coincide precisely with how we finish up regardless. Sadly, Rust has no such construct, so we're going to need to roll our own! The way to do this is to store the algorithm's state in a separate struct with a