Skip to content

Commit

Permalink
docs: address missing backticks and spelling errors (#124)
Browse files Browse the repository at this point in the history
  • Loading branch information
danieleades authored Sep 5, 2024
1 parent d3dffd2 commit 9164e2b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/endpoints/auth.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ mod refresh {
pub refresh_token: String,

/// The token type. currently the only supported token type is
/// "bearer_auth"
/// `bearer_auth`
#[serde(rename = "token_type")]
pub _token_type: String,

Expand Down
9 changes: 5 additions & 4 deletions src/endpoints/transactions.rs
Original file line number Diff line number Diff line change
Expand Up @@ -71,11 +71,12 @@ pub struct Transaction {
pub decline_reason: Option<DeclineReason>,

/// Top-ups to an account are represented as transactions with a positive
/// amount and is_load = true. Other transactions such as refunds, reversals
/// or chargebacks may have a positive amount but is_load = false
/// amount and `is_load` = true. Other transactions such as refunds,
/// reversals or chargebacks may have a positive amount but `is_load` =
/// false
pub is_load: bool,

/// The timestamp at wich the transaction was settled
/// The timestamp at which the transaction was settled
///
/// This is `None` if the transaction is authorised, but not yet complete.
#[serde(deserialize_with = "empty_string_as_none")]
Expand Down Expand Up @@ -165,7 +166,7 @@ struct Pagination {
before: Option<DateTime<Utc>>,
}

/// The 'since' paramater of a pagination request can be either a timestamp or
/// The 'since' parameter of a pagination request can be either a timestamp or
/// an object id
#[derive(Debug, Serialize, Clone)]
#[serde(untagged)]
Expand Down

0 comments on commit 9164e2b

Please sign in to comment.