docs: fix typo (#19646) (#19647)

(cherry picked from commit f68ca3895b)

Co-authored-by: Zahin Mohammad <zahin.dev@gmail.com>
This commit is contained in:
mergify[bot]
2021-09-04 18:48:36 +00:00
committed by GitHub
parent 864006a78a
commit 9a280426da

View File

@ -20,7 +20,7 @@ let message = Message::new(vec![
client.send_and_confirm_message(&[&alice_keypair, &bob_keypair], &message); client.send_and_confirm_message(&[&alice_keypair, &bob_keypair], &message);
``` ```
A client may to instead allow the `acme` program to conveniently invoke `token` A client may instead allow the `acme` program to conveniently invoke `token`
instructions on the client's behalf: instructions on the client's behalf:
```rust,ignore ```rust,ignore
@ -59,7 +59,7 @@ field.
Note that `invoke` requires the caller to pass all the accounts required by the Note that `invoke` requires the caller to pass all the accounts required by the
instruction being invoked. This means that both the executable account (the instruction being invoked. This means that both the executable account (the
ones that matches the instruction's program id) and the accounts passed to the ones that matches the instruction's program id) and the accounts passed to the
instruction procesor. instruction processor.
Before invoking `pay()`, the runtime must ensure that `acme` didn't modify any Before invoking `pay()`, the runtime must ensure that `acme` didn't modify any
accounts owned by `token`. It does this by applying the runtime's policy to the accounts owned by `token`. It does this by applying the runtime's policy to the