LaunchCodeEducation / LaunchCodeEducation/csharp-web-dev-curriculum

Chapter 6 Exercises code example doesn't follow C# syntax convention

Open Beginner friendly
#68 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
HTML
Stars
1
Forks
5
PR merge metrics
No merged PRs in 30d

Description

Relevant Link

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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.