Skip to content

Minor error in tutorial regarding shadow declarations #4595

Description

@colemickens

If you were to actually compile this example, though, the compiler will determine that the second monster_size is unused and issue a warning (because this situation is likely to indicate a programmer error).

should read:

If you were to actually compile this example, though, the compiler will determine that the first monster_size is unused and issue a warning (because this situation is likely to indicate a programmer error).

(Note that the first monster_size would garner the unused warning, rather than the second.)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    E-easyCall for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions