Skip to content

Commit

Permalink
Update of 15.3
Browse files Browse the repository at this point in the history
Updated 1 line
  • Loading branch information
0xf90c committed Mar 6, 2024
1 parent 5d17da2 commit ccea090
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions rustbook-uz/src/ch15-03-drop.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit ccea090

Please sign in to comment.