We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
在 /office/rust/book/more-about-cargo/ch14-03-cargo-workspaces.html(link: https://doc.rust-lang.org/book/ch14-03-cargo-workspaces.html) 中提到:use add_one; 但是之前命名的是 add-one ,为什么引用的时候,是用下划线呢?
/office/rust/book/more-about-cargo/ch14-03-cargo-workspaces.html
use add_one;
add-one
使用 use add-one 报错:
use add-one
error: expected one of `::`, `;`, or `as`, found `-` --> adder/src/main.rs:1:8 | 1 | use add-one; | ^ expected one of `::`, `;`, or `as` here
The text was updated successfully, but these errors were encountered:
这是为什么呀,我学到这里也有点儿疑惑,请问您搞清楚了吗
Sorry, something went wrong.
看文档:https://doc.rust-lang.org/book/ch14-03-cargo-workspaces.html
好像没有 add-one 了?
No branches or pull requests
在
/office/rust/book/more-about-cargo/ch14-03-cargo-workspaces.html
(link: https://doc.rust-lang.org/book/ch14-03-cargo-workspaces.html) 中提到:use add_one;
但是之前命名的是add-one
,为什么引用的时候,是用下划线呢?使用
use add-one
报错:The text was updated successfully, but these errors were encountered: