Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs.rs docs patch: token_program override example #2918

Merged
merged 1 commit into from
Apr 19, 2024

Conversation

fedorerd
Copy link
Contributor

@fedorerd fedorerd commented Apr 19, 2024

I've been working with interfaces recently and this example was very confusing.

  1. Updated imports to imports from anchor_spl::token_interface

  2. I removed Box<> because docs.rs currently displays them incorrectly for some reason:
    image
    Boxing accs here isn't necessary for educational purposes of this example, and hopefully removing them will fix what docs.rs builds.

Attaching link to this example on docs.rs so u could see how confusing it is right now:
https://docs.rs/anchor-lang/latest/anchor_lang/derive.Accounts.html#:~:text=%23%5Baccount(*%3A%3Atoken_program%20%3D%20%3Ctarget_account%3E)%5D

Copy link

vercel bot commented Apr 19, 2024

@fedorerd is attempting to deploy a commit to the coral-xyz Team on Vercel.

A member of the Team first needs to authorize it.

@acheroncrypto acheroncrypto added documentation Improvements or additions to documentation lang labels Apr 19, 2024
Copy link
Collaborator

@acheroncrypto acheroncrypto left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@acheroncrypto acheroncrypto merged commit 7515c91 into coral-xyz:master Apr 19, 2024
48 of 49 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation lang
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants