Skip to content

Commit

Permalink
make some doc examples text-only because order-crates-for-publishing.…
Browse files Browse the repository at this point in the history
…py is wrong
  • Loading branch information
kevinheavey committed Aug 1, 2024
1 parent 34fa986 commit 5ad04c6
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
1 change: 0 additions & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion sdk/pubkey/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ wasm-bindgen = { workspace = true }
anyhow = { workspace = true }
arbitrary = { workspace = true, features = ["derive"] }
rand = { workspace = true }
solana-program = { workspace = true, features = ["borsh"] }
solana-pubkey = { path = ".", features = ["borsh", "curve25519", "std"] }

[build-dependencies]
Expand Down
6 changes: 3 additions & 3 deletions sdk/pubkey/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ const MAX_BASE58_LEN: usize = 44;
const PDA_MARKER: &[u8; 21] = b"ProgramDerivedAddress";

/// Copied from `solana_program::entrypoint::SUCCESS`
/// to avoid a `solana_program`` dependency
/// to avoid a `solana_program` dependency
#[cfg(target_os = "solana")]
const SUCCESS: u64 = 0;

Expand Down Expand Up @@ -413,7 +413,7 @@ impl Pubkey {
///
/// First the on-chain Solana program:
///
/// ```
/// ```text
/// # use borsh::{BorshSerialize, BorshDeserialize};
/// # use solana_pubkey::Pubkey;
/// # use solana_program::{
Expand Down Expand Up @@ -493,7 +493,7 @@ impl Pubkey {
///
/// The client program:
///
/// ```
/// ```text
/// # use borsh::{BorshSerialize, BorshDeserialize};
/// # use solana_program::example_mocks::{solana_sdk, solana_rpc_client};
/// # use solana_pubkey::Pubkey;
Expand Down

0 comments on commit 5ad04c6

Please sign in to comment.