Skip to content

Commit

Permalink
readme: Fix example (#526)
Browse files Browse the repository at this point in the history
  • Loading branch information
armaniferrante authored Jul 16, 2021
1 parent ab49478 commit e92bfbf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ mod counter {
pub fn increment(ctx: Context<Increment>) -> Result<()> {
let counter = &mut ctx.accounts.counter;

counter += 1;
counter.count += 1;

Ok(())
}
Expand Down

0 comments on commit e92bfbf

Please sign in to comment.