Skip to content

Commit

Permalink
fix error markdown syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
chengevo committed Dec 7, 2024
1 parent 8dab320 commit 3fb29c0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion content/post/life-time-in-Rust.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Lifetime is a complex and often confusing concept in Rust. When discussing lifet
> 1. The lifetime of a reference, corresponding to the span of time in which that reference is used.
> 2. The lifetime of a value, corresponding to the span of time before that value gets freed (or, put another way, before the destructor for the value runs).
To distinguish the two, the lifetime of a value will be referred to as the\*scope of the value\*. The lifetime of a reference cannot outlive the scope of the value it refers to. Let’s see an example:
To distinguish the two, the lifetime of a value will be referred to as the **scope of the value**. The lifetime of a reference cannot outlive the scope of the value it refers to. Let’s see an example:

```rust { linenos=true, linenostart=1, anchorlinenos=true, lineanchors=org-coderef--9c6c47 }
fn main() {
Expand Down

0 comments on commit 3fb29c0

Please sign in to comment.