Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/content/docs/basics/cpi.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion docs/content/docs/updates/release-notes/0-31-0.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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]`
Expand Down
2 changes: 1 addition & 1 deletion tests/zero-copy/programs/zero-copy/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
Loading