From ccea090c65c885dffce7fb5127041e14e32f4921 Mon Sep 17 00:00:00 2001 From: Firdavs <75060126+firdavs099@users.noreply.github.com> Date: Wed, 6 Mar 2024 23:16:51 +0500 Subject: [PATCH] Update of 15.3 Updated 1 line --- rustbook-uz/src/ch15-03-drop.md | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/rustbook-uz/src/ch15-03-drop.md b/rustbook-uz/src/ch15-03-drop.md index 05ab8687..7bf7713f 100644 --- a/rustbook-uz/src/ch15-03-drop.md +++ b/rustbook-uz/src/ch15-03-drop.md @@ -1,9 +1,6 @@ -## Running Code on Cleanup with the `Drop` Trait +## `Drop` Trait bilan tozalash uchun ishlaydigan kod -The second trait important to the smart pointer pattern is `Drop`, which lets -you customize what happens when a value is about to go out of scope. You can -provide an implementation for the `Drop` trait on any type, and that code can -be used to release resources like files or network connections. +Agar qiymat o‘z doirasidan chiqqanda uni o‘zgartirish imkonini beradigan ikkinchi muhim sanalgan smart pointer namunasidan biri bu `Drop`dir. Siz `Drop` traitini implementatsiya qilish uchun xohlagan turdan foydalanishingiz mumkin, va kodni fayl yoki tarmoqlarni ulash resurslarini yaratish uchun ham ishlatilishi mumkin We’re introducing `Drop` in the context of smart pointers because the functionality of the `Drop` trait is almost always used when implementing a