1
0
mirror of https://github.com/google/comprehensive-rust.git synced 2025-06-15 13:50:27 +02:00
Commit Graph

6 Commits

Author SHA1 Message Date
a4bd084e50 Corrected typo on receiver.md
https://dictionary.cambridge.org/it/grammatica/grammatica-britannico/it-s-or-its
2023-01-02 10:04:04 +01:00
8470be86d0 Fix a typo 2022-12-28 18:58:23 +06:00
94cd8bb592 Link to reference on method receiver types 2022-12-28 09:19:19 +01:00
82a2f4c423 Mention that there are other receiver types 2022-12-27 18:16:21 +01:00
3631117446 Makes ownership of self more accurate
It’s entirely possible that a method gives ownership of self to another object, or return `self`. 
For example
```
    fn id(self) -> Self {
        return self;
    }
```
or more realistically 
```
    fn or(self, other) -> Self {
      if (self.isValid()) { return self;}
      return other;
    }
```
2022-12-23 00:16:42 -08:00
c212a473ba Publish Comprehensive Rust 🦀 2022-12-21 16:38:28 +01:00