Skip to content

Commit

Permalink
Changed borrow wording to reference-of
Browse files Browse the repository at this point in the history
  • Loading branch information
seanbaxter committed Oct 14, 2024
1 parent 5bee7ea commit b822b76
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion docs/P3444R0.html
Original file line number Diff line number Diff line change
Expand Up @@ -700,7 +700,7 @@ <h2 data-number="1.1" id="exclusivity"><span class="header-section-number">1.1</
reference can be done safely, because it doesn’t involve any
preconditions. Function <code class="sourceCode cpp">f</code> converts a
safe reference <code class="sourceCode cpp">x</code> to an lvalue
reference with a dereference and borrow:
reference with a dereference and reference-of:
<code class="sourceCode cpp"><span class="op">&amp;*</span>x</code>.
Going the other way is unsafe: the precondition of the
<em>unsafe-block</em> is that the legacy references <em>do not
Expand Down
2 changes: 1 addition & 1 deletion docs/draft-lifetimes.html
Original file line number Diff line number Diff line change
Expand Up @@ -700,7 +700,7 @@ <h2 data-number="1.1" id="exclusivity"><span class="header-section-number">1.1</
reference can be done safely, because it doesn’t involve any
preconditions. Function <code class="sourceCode cpp">f</code> converts a
safe reference <code class="sourceCode cpp">x</code> to an lvalue
reference with a dereference and borrow:
reference with a dereference and reference-of:
<code class="sourceCode cpp"><span class="op">&amp;*</span>x</code>.
Going the other way is unsafe: the precondition of the
<em>unsafe-block</em> is that the legacy references <em>do not
Expand Down
2 changes: 1 addition & 1 deletion lifetimes/P3444R0.md
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ void f(int% x, int% y) safe {
}
```
While safe references and legacy references are different types, they're inter-convertible. Converting a safe reference to legacy reference can be done safely, because it doesn't involve any preconditions. Function `f` converts a safe reference `x` to an lvalue reference with a dereference and borrow: `&*x`. Going the other way is unsafe: the precondition of the _unsafe-block_ is that the legacy references _do not alias_ and _do not dangle_: `%*x`.
While safe references and legacy references are different types, they're inter-convertible. Converting a safe reference to legacy reference can be done safely, because it doesn't involve any preconditions. Function `f` converts a safe reference `x` to an lvalue reference with a dereference and reference-of: `&*x`. Going the other way is unsafe: the precondition of the _unsafe-block_ is that the legacy references _do not alias_ and _do not dangle_: `%*x`.
## Constraint rules
Expand Down
2 changes: 1 addition & 1 deletion lifetimes/draft-lifetimes.md
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ void f(int% x, int% y) safe {
}
```
While safe references and legacy references are different types, they're inter-convertible. Converting a safe reference to legacy reference can be done safely, because it doesn't involve any preconditions. Function `f` converts a safe reference `x` to an lvalue reference with a dereference and borrow: `&*x`. Going the other way is unsafe: the precondition of the _unsafe-block_ is that the legacy references _do not alias_ and _do not dangle_: `%*x`.
While safe references and legacy references are different types, they're inter-convertible. Converting a safe reference to legacy reference can be done safely, because it doesn't involve any preconditions. Function `f` converts a safe reference `x` to an lvalue reference with a dereference and reference-of: `&*x`. Going the other way is unsafe: the precondition of the _unsafe-block_ is that the legacy references _do not alias_ and _do not dangle_: `%*x`.
## Constraint rules
Expand Down

0 comments on commit b822b76

Please sign in to comment.