diff --git a/docs/content/docs/basics/cpi.mdx b/docs/content/docs/basics/cpi.mdx index 60e9bf5bd1..9fb8321f0d 100644 --- a/docs/content/docs/basics/cpi.mdx +++ b/docs/content/docs/basics/cpi.mdx @@ -6,7 +6,7 @@ description: --- Cross Program Invocations (CPI) refer to the process of one program invoking -instructions of another program, which enables the composibility of Solana +instructions of another program, which enables the composability of Solana programs. This section will cover the basics of implementing CPIs in an Anchor program, diff --git a/docs/content/docs/updates/release-notes/0-31-0.mdx b/docs/content/docs/updates/release-notes/0-31-0.mdx index 148ef98adf..46227386f4 100644 --- a/docs/content/docs/updates/release-notes/0-31-0.mdx +++ b/docs/content/docs/updates/release-notes/0-31-0.mdx @@ -274,7 +274,7 @@ still allows empty discriminators because some non-Anchor programs, e.g. the SPL Token program, don't have account discriminators. In that case, safety checks should never depend on the discriminator. -Additionally, the IDL generation step also checks whether you have ambigious +Additionally, the IDL generation step also checks whether you have ambiguous discriminators i.e. discriminators that can be used for multiple types. However, you should still consider future possibilities, especially when working with 1-byte discriminators. For example, having an account with discriminator `[1]` diff --git a/tests/zero-copy/programs/zero-copy/src/lib.rs b/tests/zero-copy/programs/zero-copy/src/lib.rs index 3db1e5b09b..a71c562e3f 100644 --- a/tests/zero-copy/programs/zero-copy/src/lib.rs +++ b/tests/zero-copy/programs/zero-copy/src/lib.rs @@ -170,7 +170,7 @@ pub struct Event { // traits, so any types in method signatures must as well. // 2. All types for zero copy deserialization are `#[repr(packed)]`. However, // the implementation of AnchorSerialize (i.e. borsh), uses references -// to the fields it serializes. So if we were to just throw tehse derives +// to the fields it serializes. So if we were to just throw these derives // onto the other `Event` struct, we would have references to // `#[repr(packed)]` fields, which is unsafe. To avoid the unsafeness, we // just use a separate type.