lazy-static.rs icon indicating copy to clipboard operation
lazy-static.rs copied to clipboard

docs - add hint that doc-tests are supported

Open noah04 opened this issue 5 years ago • 1 comments

The documentations introductory section about the basic syntax says:

Attributes (including doc comments) are supported as well.

While reading it, I wondered if doc-tests are also supported. I tried it myself and it worked quite well. Is this an intended feature? If so, I'd like to create a PR to include that in the docs (maybe also with an example).

Cheers and thanks for your work!

noah04 avatar Jan 23 '20 17:01 noah04

Yes, this is intended. Supporting doc comments kind of implies supporting doc tests. But I guess it doesn't hurt to mention it explicitly, so feel free to open a PR!

LukasKalbertodt avatar Jan 23 '20 20:01 LukasKalbertodt