Skip to content

fix: their -> they're #165

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
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
2 changes: 1 addition & 1 deletion gatsby/content/blog/lifetimes-in-rust/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ fn greeting() {

The variable `s` is defined inside of `greeting` and a soon as the function is done doing its work, `s` is no longer needed so Rust will drop its value, freeing up the memory. We could say that `s` "lives" as long as the execution of `greeting`.

This is an important concept, especially when it comes to using [references in Rust](/references-in-rust/). Whenever we use references, Rust tries to assign them a **lifetime** that matches the constraints by how their used. Here's a simple example of that:
This is an important concept, especially when it comes to using [references in Rust](/references-in-rust/). Whenever we use references, Rust tries to assign them a **lifetime** that matches the constraints by how they're used. Here's a simple example of that:

```rust
fn main() {
Expand Down