Skip to content

Code blocks for multiple files is confusing #38

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

Open
MichalMichalak opened this issue Oct 26, 2019 · 1 comment
Open

Code blocks for multiple files is confusing #38

MichalMichalak opened this issue Oct 26, 2019 · 1 comment

Comments

@MichalMichalak
Copy link

It's just an opinion but, I think, the formula for showing multiple files in one code block makes it really confusing to read. It would be much better for multiple files to use multiple code blocks.

This is what we have now.

// 01. greetings/Cargo.toml to mark as a workspace and to add members
[workspace]
members = [
    "lib",
    "examples/hello"
]

// 02.1 greetings/lib/Cargo.toml to change the package name to greetings
[package]
name = "greetings"
version = "0.1.0"
authors = ["Dumindu Madunuwan"]

[dependencies]

It would be better like this.

greetings/Cargo.toml to mark as a workspace and to add members

[workspace]
members = [
    "lib",
    "examples/hello"
]

greetings/lib/Cargo.toml to change the package name to greetings

[package]
name = "greetings"
version = "0.1.0"
authors = ["Dumindu Madunuwan"]

[dependencies]
@ghost
Copy link

ghost commented Oct 29, 2021

I just stumbled upon this website and its very informative, much better than the official book. I agree its hard to know where a file starts and ends. Multiple codeblocks would definitely help.

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