Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Rust's rustdoc tool does an excellent job converting comments to HTML.

The documentation for almost every public Rust library is automatically rendered and hosted on docs.rs and it's incredible to have that consistency.

Just check out this Regex type and the awesome documentation for every method, all taken from inline comments:

https://docs.rs/regex/latest/regex/struct.Regex.html



I wish more languages had this!




Consider applying for YC's Fall 2026 batch! Applications are open till July 27.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: