Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HDDの容量を64GiB増やすクロージャ #36

Open
HAYASAKA-Ryosuke opened this issue Jul 10, 2024 · 0 comments
Open

HDDの容量を64GiB増やすクロージャ #36

HAYASAKA-Ryosuke opened this issue Jul 10, 2024 · 0 comments

Comments

@HAYASAKA-Ryosuke
Copy link

2.2 構文と基本機能の章で "HDDの容量を64GiB増やすクロージャ" の例が記載されていますが

1行目のコードが

let mut s = Storage::SSD(512);

SSDになっていますが、正しくはHDDではないのでしょうか?
例えば次のようになると思います。sizeとrpmの値は数ページ前の "デバッグ出力の方法" を参考にしました。

let mut s = Storage::HDD {size: 2048, rpm: 7200};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant