Skip to content

Commit

Permalink
chore(docs): improve iota-sdk docs (#3834)
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex6323 authored Oct 31, 2024
1 parent 0123dba commit 7e9e00d
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 9 deletions.
7 changes: 4 additions & 3 deletions crates/iota-sdk/src/apis/read.rs
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,7 @@ impl ReadApi {
.await?)
}

/// Return a [IotaObjectResponse] based on the provided [ObjectID] and
/// Return an [IotaObjectResponse] based on the provided [ObjectID] and
/// [IotaObjectDataOptions], or an error upon failure.
///
/// The [IotaObjectResponse] contains two fields:
Expand Down Expand Up @@ -456,8 +456,9 @@ impl ReadApi {
Ok(*self.api.http.get_total_transaction_blocks().await?)
}

/// Return a transaction and its effects in a [IotaTransactionBlockResponse]
/// based on its [TransactionDigest], or an error upon failure.
/// Return a transaction and its effects in an
/// [IotaTransactionBlockResponse] based on its [TransactionDigest], or
/// an error upon failure.
pub async fn get_transaction_with_options(
&self,
digest: TransactionDigest,
Expand Down
12 changes: 6 additions & 6 deletions crates/iota-sdk/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
//!
//! # Usage
//! The main way to interact with the API is through the [IotaClientBuilder],
//! which returns a [IotaClient] object from which the user can access the
//! which returns an [IotaClient] object from which the user can access the
//! various APIs.
//!
//! ## Getting Started
Expand Down Expand Up @@ -195,7 +195,7 @@ impl IotaClientBuilder {
self
}

/// Returns a [IotaClient] object connected to the Iota network running at
/// Returns an [IotaClient] object connected to the Iota network running at
/// the URI provided.
///
/// # Examples
Expand Down Expand Up @@ -285,7 +285,7 @@ impl IotaClientBuilder {
})
}

/// Returns a [IotaClient] object that is ready to interact with the local
/// Returns an [IotaClient] object that is ready to interact with the local
/// development network (by default it expects the Iota network to be
/// up and running at `127.0.0.1:9000`).
///
Expand All @@ -308,7 +308,7 @@ impl IotaClientBuilder {
self.build(IOTA_LOCAL_NETWORK_URL).await
}

/// Returns a [IotaClient] object that is ready to interact with the Iota
/// Returns an [IotaClient] object that is ready to interact with the Iota
/// devnet.
///
/// For connecting to a custom URI, use the `build` function instead..
Expand All @@ -330,7 +330,7 @@ impl IotaClientBuilder {
self.build(IOTA_DEVNET_URL).await
}

/// Returns a [IotaClient] object that is ready to interact with the Iota
/// Returns an [IotaClient] object that is ready to interact with the Iota
/// testnet.
///
/// For connecting to a custom URI, use the `build` function instead.
Expand Down Expand Up @@ -404,7 +404,7 @@ impl IotaClientBuilder {
///
/// # Usage
///
/// Use [IotaClientBuilder] to build a [IotaClient].
/// Use [IotaClientBuilder] to build an [IotaClient].
///
/// # Examples
///
Expand Down

0 comments on commit 7e9e00d

Please sign in to comment.