Skip to content

Commit

Permalink
add missing comma
Browse files Browse the repository at this point in the history
  • Loading branch information
gheoan committed Feb 7, 2017
1 parent c49d102 commit ffea076
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/doc/book/lifetimes.md
Expand Up @@ -108,7 +108,7 @@ fn skip_prefix<'a, 'b>(line: &'a str, prefix: &'b str) -> &'a str {

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

0 comments on commit ffea076

Please sign in to comment.