ZhangHanDong / tao-of-rust-codes

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

[第二章] 代码清单2-20 match表达式 #340

Closed lius-new closed 10 months ago

lius-new commented 12 months ago

页码与行数


文本或排版错误

代码是否出错,是否存在1...3这样的语法

ZhangHanDong commented 10 months ago

这个语法之前是存在的,后来改为了 ..=,这本书已经出版四年了,请关注第二版吧,覆盖2024 edition