Skip to content

Commit dcf7e4d

Browse files
committed
Clarify comment about structs and lifetimes
FIxes #29742
1 parent 57c8a3e commit dcf7e4d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/doc/trpl/lifetimes.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,8 @@ reference to an `i32` with the lifetime `'a`’.
116116

117117
# In `struct`s
118118

119-
You’ll also need explicit lifetimes when working with [`struct`][structs]s:
119+
You’ll also need explicit lifetimes when working with [`struct`][structs]s that
120+
contain references:
120121

121122
```rust
122123
struct Foo<'a> {

0 commit comments

Comments
 (0)