Skip to content

Commit

Permalink
fix docs
Browse files Browse the repository at this point in the history
  • Loading branch information
rklaehn committed Nov 12, 2024
1 parent 6d32cdc commit ce59f9b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/rpc/client/authors.rs
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ impl<C: Connector<RpcService>> Client<C> {
/// You likely want to save the returned [`AuthorId`] somewhere so that you can use this author
/// again.
///
/// If you need only a single author, use [`Self::author_default`].
/// If you need only a single author, use [`Self::default`].
pub async fn create(&self) -> Result<AuthorId> {
let res = self.rpc.rpc(AuthorCreateRequest).await??;
Ok(res.author_id)
Expand All @@ -44,7 +44,7 @@ impl<C: Connector<RpcService>> Client<C> {
/// On persistent nodes, the author is created on first start and its public key is saved
/// in the data directory.
///
/// The default author can be set with [`Self::author_set_default`].
/// The default author can be set with [`Self::set_default`].
pub async fn default(&self) -> Result<AuthorId> {
let res = self.rpc.rpc(AuthorGetDefaultRequest).await??;
Ok(res.author_id)
Expand Down

0 comments on commit ce59f9b

Please sign in to comment.