LaunchCodeEducation / LaunchCodeEducation/csharp-web-dev-curriculum
Chapter 6 Exercises code example doesn't follow C# syntax convention
Open
Beginner friendly
Nobody has claimed this yet.
- Dominant language
- HTML
- Stars
- 1
- Forks
- 5
- PR merge metrics
- No merged PRs in 30d
Description
Code examples:
//TODO: can't have more gas than tank size, expect an exception
[TestMethod]
public void TestGasOverfillException() {
}
public void AddGas(double gas) {
GasTankLevel += gas;
}
Suggested change: using Allman style syntax the code should read:
[TestMethod]
public void TestGasOverfillException()
{
}
public void AddGas(double gas)
{
GasTankLevel += gas;
}
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the linked Chapter 6 Exercises page and inspect the TestGasOverfillException and AddGas code examples. Update both snippets to use the requested Allman-style brace placement; done when the examples consistently match that C# syntax convention.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- csharp
- Domain
- documentation
- Issue type
- Documentation
- Difficulty
- 1/5
- Estimated time
- Under an hour
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 72/100