Skip to content

Commit 722ba54

Browse files
committed
Fix spelling
1 parent f3dbdc7 commit 722ba54

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

sdk/log/macro/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,7 @@ pub fn log(input: TokenStream) -> TokenStream {
261261
///
262262
/// logging output will look like:
263263
///
264-
/// "Program log: Function my_function consumed 36 compute units"
264+
/// "Program log: Function `my_function` consumed 36 compute units"
265265
///
266266
/// # References
267267
///

sdk/pinocchio/src/account_info.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,8 @@ pub(crate) struct Account {
4848
///
4949
/// * lamport mutable borrow flag
5050
/// - `7 6 5 4 3 2 1 0`
51-
/// - `x . . . . . . .`: `1` -> the lamport field can be mutably borrowed;
52-
/// `0` -> there is an outstanding mutable borrow for the lamports.
51+
/// - `x . . . . . . .`: `1` - the lamport field can be mutably borrowed;
52+
/// `0` - there is an outstanding mutable borrow for the lamports.
5353
///
5454
/// * lamport immutable borrow count
5555
/// - `7 6 5 4 3 2 1 0`
@@ -59,8 +59,8 @@ pub(crate) struct Account {
5959
///
6060
/// * data mutable borrow flag
6161
/// - `7 6 5 4 3 2 1 0`
62-
/// - `. . . . x . . .`: `1` -> the account data can be mutably borrowed;
63-
/// `0` -> there is an outstanding mutable borrow for the account data.
62+
/// - `. . . . x . . .`: `1` - the account data can be mutably borrowed;
63+
/// `0` - there is an outstanding mutable borrow for the account data.
6464
///
6565
/// * data immutable borrow count
6666
/// - `7 6 5 4 3 2 1 0`

sdk/pinocchio/src/cpi.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -390,7 +390,7 @@ pub unsafe fn invoke_signed_unchecked(
390390
/// DO NOT EXPOSE THIS STRUCT:
391391
///
392392
/// To ensure pointers are valid upon use, the scope of this struct should
393-
/// only be limited to the stack where sol_invoke_signed_c happens and then
393+
/// only be limited to the stack where `sol_invoke_signed_c` happens and then
394394
/// discarded immediately after.
395395
#[repr(C)]
396396
struct CInstruction<'a> {
@@ -466,12 +466,12 @@ pub fn set_return_data(data: &[u8]) {
466466
///
467467
/// Return data is set by the callee with [`set_return_data`].
468468
///
469-
/// Return data is cleared before every CPI invocation &mdash; a program that
469+
/// Return data is cleared before every CPI invocation - a program that
470470
/// has invoked no other programs can expect the return data to be `None`; if no
471471
/// return data was set by the previous CPI invocation, then this function
472472
/// returns `None`.
473473
///
474-
/// Return data is not cleared after returning from CPI invocations &mdash; a
474+
/// Return data is not cleared after returning from CPI invocations. A
475475
/// program that has called another program may retrieve return data that was
476476
/// not set by the called program, but instead set by a program further down the
477477
/// call stack; or, if a program calls itself recursively, it is possible that

0 commit comments

Comments
 (0)