readme: Fix example (#526)

This commit is contained in:
Armani Ferrante 2021-07-16 10:35:01 -07:00 committed by GitHub
parent ab49478259
commit e92bfbf7f1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -57,7 +57,7 @@ mod counter {
pub fn increment(ctx: Context<Increment>) -> Result<()> { pub fn increment(ctx: Context<Increment>) -> Result<()> {
let counter = &mut ctx.accounts.counter; let counter = &mut ctx.accounts.counter;
counter += 1; counter.count += 1;
Ok(()) Ok(())
} }