Skip to content

Commit fdc0e32

Browse files
authored
Add sentence about Flux strong references (#24)
1 parent ddbe2d2 commit fdc0e32

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/mutable-references.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,10 @@ Yet another way to look at this, is that mutable references are like reversed fu
1515
- Functions `fn(P) -> R` ask for a value of type `P` then give back a value of type `R`.
1616
- Mutable references `&mut [T .. S]` give a value of type `T` then ask it back at type `S`.
1717

18+
This is the same concept as the [strong
19+
references](https://flux-rs.github.io/flux/blog/02-ownership.html#borrowing-strong-references) in
20+
[Flux](https://github.com/flux-rs/flux).
21+
1822
## Variance
1923

2024
The mutable reference type `&mut [T .. S]` is co-variant in `T` and contra-variant in `S`. When

0 commit comments

Comments
 (0)