1
0
mirror of https://github.com/google/comprehensive-rust.git synced 2024-12-05 03:58:45 +02:00

Corrected typo on receiver.md

https://dictionary.cambridge.org/it/grammatica/grammatica-britannico/it-s-or-its
This commit is contained in:
Fosco1 2023-01-02 10:04:04 +01:00 committed by GitHub
parent a62c695fe3
commit a4bd084e50
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -9,7 +9,7 @@ are other possible receivers for a method:
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 dropped (deallocated)
when the method returns, unless its ownership is explicitly
when the method returns, unless its ownership is explicitly
transmitted.
* No receiver: this becomes a static method on the struct. Typically used to
create constructors which are called `new` by convention.