Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: fix two typos in SIL.md #78715

Merged
merged 1 commit into from
Jan 20, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions docs/SIL/SIL.md
Original file line number Diff line number Diff line change
Expand Up @@ -446,7 +446,7 @@ Lifetimes have following properties:

- Lifetimes of guaranteed values are called _borrow scopes_. A borrow scope
starts with a single definition - the borrow-introducer. There are only a few
different kind of borrow-introducers:
different kinds of borrow-introducers:
- guaranteed function argument: the lifetime spans over the whole function
and doesn't need a scope-ending use.
- `borrowed-from` instruction: it produces a borrow scope from a [reborrow
Expand Down Expand Up @@ -481,7 +481,7 @@ Lifetimes have following properties:
```
%1 = load [copy] %0 // producer
%2 = copy_value %1 // interior use of %1
%3 = move_value %1 // consuming use of %2
%3 = move_value %1 // consuming use of %1
%4 = copy_value %1 // ERROR: use of %1 outside %1's lifetime
```

Expand Down