Skip to content

Commit

Permalink
Update lifetimes.md - typo semicolon in struct member
Browse files Browse the repository at this point in the history
add comma instead
  • Loading branch information
amanjeev authored Sep 28, 2023
1 parent b91699b commit d99b937
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions training-slides/src/lifetimes.md
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,7 @@ fn main() {

```rust ignore
struct Configuration {
database_url: &str;
database_url: &str,
}
```

Expand All @@ -287,7 +287,7 @@ Where does the string data come from?

```rust ignore
struct Configuration<'a> {
database_url: &'a str;
database_url: &'a str,
}
```
<p>&nbsp;<!-- spacer for "run" button --></p>
Expand Down

0 comments on commit d99b937

Please sign in to comment.