add missing comma

This commit is contained in:
Gheorghe Anghelescu 2017-02-07 19:47:48 +02:00 committed by GitHub
parent c49d10207a
commit ffea076f1b

View File

@ -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 - 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 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 reference in the function signature was associated with one of the lifetime
parameters by adding the lifetime name after the `&`. This tells the compiler parameters by adding the lifetime name after the `&`. This tells the compiler
how the lifetimes between different references are related. how the lifetimes between different references are related.