From c06e35614ab9d0b45c69281a4434643598bbb16e Mon Sep 17 00:00:00 2001 From: Dharmin Nagar <68629743+dharminnagar@users.noreply.github.com> Date: Tue, 21 Apr 2026 08:09:56 +0530 Subject: [PATCH] fix: Improve clarity & grammar on smart pointer traits Clarify the explanation of the `Deref` and `Drop` traits in relation to smart pointers. --- src/ch15-00-smart-pointers.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ch15-00-smart-pointers.md b/src/ch15-00-smart-pointers.md index 8e0c0e89d8..0063d3eae7 100644 --- a/src/ch15-00-smart-pointers.md +++ b/src/ch15-00-smart-pointers.md @@ -25,7 +25,7 @@ Smart pointers are usually implemented using structs. Unlike an ordinary struct, smart pointers implement the `Deref` and `Drop` traits. The `Deref` trait allows an instance of the smart pointer struct to behave like a reference so that you can write your code to work with either references or smart -pointers. The `Drop` trait allows you to customize the code that’s run when an +pointers. The `Drop` trait allows you to customize the code that runs when an instance of the smart pointer goes out of scope. In this chapter, we’ll discuss both of these traits and demonstrate why they’re important to smart pointers.