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

Use anchors instead of line numbers for 1.1-1.3 #86

Closed
wants to merge 1 commit into from

Conversation

desttinghim
Copy link

Uses anchors instead of line numbers for chapters 1.1 through 1.3. Cherry picked from my larger PR #75. First part in resolving #46

@@ -68,7 +68,7 @@ more dependencies. If this step fails and you see errors related to `alsa` and `
Now let's actually use ggez in the main file and set up our window. This is just the simplest example of a ggez program that will give us a window with nothing else. Copy and paste this into the `main.rs` file and run again.

```rust
{{#include ../../../code/rust-sokoban-c01-01/src/main.rs}}
{{#include ../code/rust-sokoban-c01-01/src/main.rs:all}}
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think you might need to find/replace ../code -> ../../../code, this is because of the previous PR which moved files around in subdirectories 😄

@iolivia
Copy link
Owner

iolivia commented Mar 20, 2021

hey @desttinghim, thanks a lot for this change! I think this is too big of a change to make after the book has already been written and lots of risk to mess up the code line numbers, will require a similar PR for all subsequent chapters, so I think I will close this for now. I might bring this back one day if I have more time to work on the book, thanks again! :)

@iolivia iolivia closed this Mar 20, 2021
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

Successfully merging this pull request may close these issues.

2 participants