mirror of
https://github.com/google/comprehensive-rust.git
synced 2025-01-09 01:02:47 +02:00
Merge pull request #84 from yesenarman/patch-1
Fix a typo: "will be drop" -> "will be dropped"
This commit is contained in:
commit
7b98da490a
@ -8,7 +8,7 @@ are other possible receivers for a method:
|
||||
* `&mut self`: borrows the object from the caller using a unique and mutable
|
||||
reference. The object can be used again afterwards.
|
||||
* `self`: takes ownership of the object and moves it away from the caller. The
|
||||
method becomes the owner of the object. The object will be drop (deallocated)
|
||||
method becomes the owner of the object. The object will be dropped (deallocated)
|
||||
when the method returns, unless it’s ownership is explicitly
|
||||
transmitted.
|
||||
* No receiver: this becomes a static method on the struct. Typically used to
|
||||
|
Loading…
Reference in New Issue
Block a user