-
-
Notifications
You must be signed in to change notification settings - Fork 411
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
Add code examples for boa_interner
#2337
Comments
Can I pick this up? |
Assigned! |
Hey, currently I'm looking at how the |
Most of the public functions have usages inside |
Sounds good 👍🏾 . I'll try that and get back to you |
@Joymfl , any update on this ? |
I don't think this issue should be closed, since the related PR added a couple of tests, but no examples in the documentation of the interner. |
Can you give me an reference, where should I add the documentation ? |
Hi, Can i get any assistance on the above comment, please? |
Hi @postmeback, sorry for not writing here! I was checking the code, and in fact, the mentioned lint is unstable (rust-lang/rust#101730). You could in theory enable it by adding This can help you get the warnings on where some usage examples need to be added in the API. For each warning, the idea is to add some code examples in the doc comments, that show how to use it. |
Saw that you ran |
The
boa_interner
crate has anallow(rustdoc::missing_doc_code_examples)
on its root. Ideally, this crate should have some usage snippets on everypub
function.The text was updated successfully, but these errors were encountered: