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

Code block with wrong character in chapter 0 #1037

Open
sidwellr opened this issue Oct 14, 2024 · 0 comments
Open

Code block with wrong character in chapter 0 #1037

sidwellr opened this issue Oct 14, 2024 · 0 comments

Comments

@sidwellr
Copy link

In chapter 0, the code block shortly before example 0.2, the minus signs are entered as en-dashes. This doesn't affect the printed version (unless you look very carefully), but copying/pasting the code block from the web site doesn't work correctly. Please change the three en-dashes to minus signs.

  step() {

    let xstep = random(–1, 1);
    let ystep = random(–1, 1);

Any floating-point number from –1 to 1

    this.x += xstep;

    this.y += ystep;

  }
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