readme: Fix example (#526)
This commit is contained in:
parent
ab49478259
commit
e92bfbf7f1
|
@ -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(())
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue