Skip to content

Commit

Permalink
Fix the function name
Browse files Browse the repository at this point in the history
Changed function name `summary`(English) to `resumo` (Portuguese)
  • Loading branch information
luissobrinho authored Feb 14, 2022
1 parent 626da13 commit b62066a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ch10-02-traits.md
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ let tweet = Tweet {
retweet: false,
};
println!("1 novo tweet: {}", tweet.summary());
println!("1 novo tweet: {}", tweet.resumo());
```

Isso irá imprimir `1 novo tweet: claro, como vocês provavelmente já sabem,
Expand Down Expand Up @@ -547,4 +547,4 @@ Há outro tipo de tipos genéricos que estamos usando sem nem ao menos perceber
chamados *lifetimes*. Em vez de nos ajudar a garantir que um tipo tenha o
comportamento que precisamos, lifetimes nos ajudam a garantir que as
referências são válidas tanto quanto precisam ser. Vamos aprender como
lifetimes fazem isso.
lifetimes fazem isso.

0 comments on commit b62066a

Please sign in to comment.