Skip to content
Merged
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
6 changes: 4 additions & 2 deletions sdk/program/src/program_option.rs
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,8 @@ impl<T> COption<T> {
/// assert_eq!(x.expect("the world is ending"), "value");
/// ```
///
/// ```ignore{.should_panic}
/// ```should_panic
/// # use solana_program::program_option::COption;
/// let x: COption<&str> = COption::None;
/// x.expect("the world is ending"); // panics with `the world is ending`
/// ```
Expand Down Expand Up @@ -203,7 +204,8 @@ impl<T> COption<T> {
/// assert_eq!(x.unwrap(), "air");
/// ```
///
/// ```ignore{.should_panic}
/// ```should_panic
/// # use solana_program::program_option::COption;
/// let x: COption<&str> = COption::None;
/// assert_eq!(x.unwrap(), "air"); // fails
/// ```
Expand Down