ZhangHanDong / tao-of-rust-codes

《Rust编程之道》随书源码
https://ruststudy.github.io/tao_of_rust_docs/tao_of_rust/
MIT License
1.19k stars 172 forks source link

【第二章】函数与闭包 代码清单 2-14 #229

Closed Michael2008S closed 5 years ago

Michael2008S commented 5 years ago

页码与行数


代码错误

fn math<F: Fn() -> i32>(op: F) -> i32  // 此处应该是 fn closure_math<F: Fn() -> i32>(op: F) -> i32
ZhangHanDong commented 5 years ago

@Michael2008S 感谢反馈,不过此处应该是已经勘误过了,可以关注closed的勘误列表。