Skip to content

Commit 68872a8

Browse files
authored
Rollup merge of #39620 - Gheoan:patch-1, r=steveklabnik
add missing comma
2 parents 83595fa + ffea076 commit 68872a8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/doc/book/lifetimes.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ fn skip_prefix<'a, 'b>(line: &'a str, prefix: &'b str) -> &'a str {
108108

109109
Let's examine the changes without going too deep into the syntax for now -
110110
we'll get to that later. The first change was adding the `<'a, 'b>` after the
111-
method name. This introduces two lifetime parameters: `'a` and `'b`. Next each
111+
method name. This introduces two lifetime parameters: `'a` and `'b`. Next, each
112112
reference in the function signature was associated with one of the lifetime
113113
parameters by adding the lifetime name after the `&`. This tells the compiler
114114
how the lifetimes between different references are related.

0 commit comments

Comments
 (0)