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

Chapter 6, Page - 320 - Typo #29

Open
jwhitt3r opened this issue Jan 25, 2022 · 2 comments
Open

Chapter 6, Page - 320 - Typo #29

jwhitt3r opened this issue Jan 25, 2022 · 2 comments

Comments

@jwhitt3r
Copy link

jwhitt3r commented Jan 25, 2022

Hi there, I believe there is either a typo on page 320 regarding the honey field, where it should be the nectar field:
"The CollectNectar method is called by the NectarCollector bee each shift. It takes a parameter, amount. If amount is greater than zero, it adds it to the honey field."

Example Code found here and in the solution on page 322 uses the nectar field
public static void CollectNectar(float amount) { if (amount > 0f) { nectar += amount; } }

@andrewstellman
Copy link
Collaborator

Whoops! Yep, you're right—thanks for catching that.

@jwhitt3r
Copy link
Author

Not a problem, thank you for such a great book!

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

2 participants