From 9a280426da18c99e846a7df71f779d93ea046dab Mon Sep 17 00:00:00 2001 From: "mergify[bot]" <37929162+mergify[bot]@users.noreply.github.com> Date: Sat, 4 Sep 2021 18:48:36 +0000 Subject: [PATCH] docs: fix typo (#19646) (#19647) (cherry picked from commit f68ca3895b448a9ffa975a006afedcd0dd0d1d76) Co-authored-by: Zahin Mohammad --- .../developing/programming-model/calling-between-programs.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/src/developing/programming-model/calling-between-programs.md b/docs/src/developing/programming-model/calling-between-programs.md index c688869696..d53d6cced4 100644 --- a/docs/src/developing/programming-model/calling-between-programs.md +++ b/docs/src/developing/programming-model/calling-between-programs.md @@ -20,7 +20,7 @@ let message = Message::new(vec![ 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: ```rust,ignore @@ -59,7 +59,7 @@ field. 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 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 accounts owned by `token`. It does this by applying the runtime's policy to the