官术网_书友最值得收藏!

Testing your documentation

Out-of-date documentation and examples that aren't working as promised are an unfortunate truth of many technologies. However, these examples can be valuable (black box) regression tests to make sure that we didn't break anything while improving the code, so how can they be used as such? Rust's documentation strings (///) can include executable code snippets—and they can be seen all over the place on https://www.rust-lang.org/learn!

主站蜘蛛池模板: 凉山| 阳朔县| 新源县| 中宁县| 洛浦县| 博客| 渭源县| 嘉兴市| 西林县| 新丰县| 定陶县| 阿拉善右旗| 天长市| 宜春市| 太湖县| 保山市| 德钦县| 东平县| 常州市| 衡水市| 聂拉木县| 横山县| 晋宁县| 东方市| 平湖市| 平昌县| 保靖县| 佳木斯市| 宜兰市| 仪陇县| 沂水县| 安新县| 缙云县| 辛集市| 大足县| 来安县| 姚安县| 义乌市| 陇川县| 灵寿县| 杭锦旗|