Skip to content

Commit

Permalink
Fix example
Browse files Browse the repository at this point in the history
  • Loading branch information
Vincent Prouillet committed Dec 26, 2016
1 parent 75ce72e commit e715eb4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/claims.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ struct Claims {

// Example validation implementation
impl Claims {
fn is_valid(self) -> bool {
if self.company != "ACME".to_owned() {
fn is_valid(&self) -> bool {
if self.company != "ACME" {
return false;
}
// expiration etc
Expand Down

0 comments on commit e715eb4

Please sign in to comment.