Skip to content

Commit 2060979

Browse files
committed
[Doc] Added a little on store_borrow.
1 parent 49b4c34 commit 2060979

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

docs/SIL.rst

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4070,11 +4070,14 @@ The stack location must not be modified by other instructions than
40704070
``store_borrow``.
40714071
All uses of the store_borrow destination ```%1`` should be via the store_borrow
40724072
return address ``%2`` except dealloc_stack.
4073-
The stored value is alive until the ``end_borrow``. During the its lifetime,the
4073+
The stored value is alive until the ``end_borrow``. During its lifetime, the
40744074
stored value must not be modified or destroyed.
4075-
The source value ``%0`` is borrowed (i.e. not copied) and it's borrow scope
4075+
The source value ``%0`` is borrowed (i.e. not copied) and its borrow scope
40764076
must outlive the lifetime of the stored value.
40774077

4078+
Notionally, the outer borrow scope ensures that there's something to be
4079+
addressed. The inner borrow scope provides the address to work with.
4080+
40784081
begin_borrow
40794082
````````````
40804083

0 commit comments

Comments
 (0)