Skip to content

Variable name consistency in Conditionals.java #118

Description

@0verkil

Which example?
Include the path to the example directory and relevant file(s).
Stage 0 Conditionals examples/stage0/snippets/Conditionals.java
and corresponding files:
public/learning-course/stage0/conditionals/elseif.png
src/content/docs/learning-course/stage0/conditionals.mdx

What's wrong?
In the section subtitled elseIfSyntax, the conditions are labelled condition_A and condition_B, which does not match the previously-stated variable formatting of camelCase. This is also true in the flowchart (public/learning-course/stage0/conditionals/elseif.png) and the text in the corresponding section (src/content/docs/learning-course/stage0/conditionals.mdx).

Expected behavior
These variables / placeholders? should be named conditionA and conditionB, for consistency.

Steps to reproduce
It's in the code, and on the website.

Suggested fix (optional)
Change the names (which I can do) and redo the flowchart (which I can't do).

Additional context
Low priority. Like, very low.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions