]> git.lizzy.rs Git - rust.git/commitdiff
Fix small typo in Drop documentation
authorMark Lodato <mlodato517@gmail.com>
Wed, 14 Apr 2021 20:05:56 +0000 (16:05 -0400)
committerGitHub <noreply@github.com>
Wed, 14 Apr 2021 20:05:56 +0000 (16:05 -0400)
library/core/src/ops/drop.rs

index ce7d1c3d06ddc5dea1dfb68a152a7551c4d7e4af..f4b1ec377d413c64f783c4f03f9ed1f1e30eddbd 100644 (file)
@@ -78,7 +78,7 @@
 ///
 /// In other words, if you tried to explicitly call `Drop::drop` in the above example, you'd get a compiler error.
 ///
-/// If you'd like explicitly call the destructor of a value, [`mem::drop`] can be used instead.
+/// If you'd like to explicitly call the destructor of a value, [`mem::drop`] can be used instead.
 ///
 /// [`mem::drop`]: drop
 ///