mirror of
https://github.com/google/comprehensive-rust.git
synced 2025-01-20 21:18:26 +02:00
Clarification in Trait Objects. (#379)
This commit is contained in:
parent
91eec89c52
commit
710fd526b4
@ -66,7 +66,7 @@ Memory layout after allocating `xs`:
|
||||
'- - - - - - - - - - - - - - - - - - - - - - - -'
|
||||
```
|
||||
|
||||
Similarly, you need a trait object if you want to return different values
|
||||
Similarly, you need a trait object if you want to return different types
|
||||
implementing a trait:
|
||||
|
||||
```rust,editable
|
||||
|
Loading…
x
Reference in New Issue
Block a user