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

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!

主站蜘蛛池模板: 阿鲁科尔沁旗| 科技| 宜君县| 岗巴县| 亚东县| 蒲城县| 平武县| 富顺县| 岳阳市| 夏邑县| 德清县| 交口县| 都安| 咸阳市| 乐安县| 曲麻莱县| 宜宾县| 衡阳市| 泰宁县| 江山市| 台湾省| 潼南县| 滦南县| 荥经县| 灵武市| 任丘市| 太康县| 海晏县| 河曲县| 集贤县| 新闻| 丰县| 邵东县| 祁阳县| 梧州市| 吐鲁番市| 彭泽县| 新邵县| 信丰县| 梁河县| 永仁县|