]> git.lizzy.rs Git - rust.git/blobdiff - src/libstd/panic.rs
Auto merge of #30917 - arthurprs:bs_bounds_check, r=alexcrichton
[rust.git] / src / libstd / panic.rs
index 8c0a785a10256ebde67d38d88b40b9fcf7bc8f5a..3677bd27b16194f90fe6b37f8439c9735331647b 100644 (file)
@@ -136,7 +136,7 @@ pub trait RefRecoverSafe {}
 ///
 /// let mut variable = 4;
 ///
-/// // This code will not compile becuause the closure captures `&mut variable`
+/// // This code will not compile because the closure captures `&mut variable`
 /// // which is not considered panic safe by default.
 ///
 /// // panic::recover(|| {