Commit 71ad427
authored
Make 1-to-1 Relationship clearer in docs (#24116)
# Objective
Make the possibility of 1-to-1 `Relationship` clearer in the docs, so
that people know it's an option.
(There's already a passing mention of it at the top, but that doesn't
show that it's supported in code.)
## Solution
Added an example to the doc comment to show how it's done, and explained
what happens if you try to add another entity anyway.
## Testing
Ran `cargo doc` and looked at the new docs to see if they're ok.1 parent 739b1e5 commit 71ad427
1 file changed
Lines changed: 15 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
64 | 64 | | |
65 | 65 | | |
66 | 66 | | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
67 | 82 | | |
68 | 83 | | |
69 | 84 | | |
| |||
0 commit comments