> I'm voicing my support for the nice docstring comments :). > > I'd be all for only having // comments and /// docstrings though, but > I have a feeling a lot of people would strongly disagree. > _______________________________________________
Use /// to start a doc-string and / to continue one. This seemed like a reasonable tradeoff between minimal typing on each line and avoiding the problems of requiring a terminating */ when I last thought about this. /// Factorial / / Returns n*n(n-1)*...*1 fn fact(n: int) ... _______________________________________________ Rust-dev mailing list [email protected] https://mail.mozilla.org/listinfo/rust-dev
