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

  • Rust Programming Cookbook
  • Claus Matzinger
  • 72字
  • 2021-06-24 12:27:45

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!

主站蜘蛛池模板: 屯昌县| 潼关县| 保康县| 扬中市| 甘孜县| 肇庆市| 同心县| 紫阳县| 札达县| 九江县| 巴楚县| 通化市| 张北县| 武强县| 江门市| 霍邱县| 陵川县| 榆社县| 雷波县| 偏关县| 武宣县| 大渡口区| 巴塘县| 德钦县| 谷城县| 汕头市| 长乐市| 珲春市| 北安市| 佛冈县| 文昌市| 南和县| 河东区| 黄骅市| 伊吾县| 枣阳市| 乌苏市| 白朗县| 绥中县| 惠来县| 双桥区|