LearningTypeScript / projects

Hands-on real world projects that will help you exercise your knowledge of TypeScript.
https://learningtypescript.com/projects
245 stars 166 forks source link

✍ Typo: [system-of-a-clown] typo in solution #252

Closed rachel490 closed 1 year ago

rachel490 commented 1 year ago

Typo Report Checklist

Impacted Project File

/the-type-system/system-of-a-clown/solution.ts

What's Wrong?

/the-type-system/system-of-a-clown/solution.ts : the first two if statement's matchingsDescription name should be Krusty and Ronald respectively.

previous


    // Krusty says: I had a one-man show on Broadway...
    // That's who showed up, one man!
    if (krustyAvailability) {
        guestCount -= 10;
        krustyAvailability = false;
        matchingsDescription += "Bozo will handle the first ten guests.\n";
        lastClown = "Krusty";
        continue;
    }

    // Ronald says: McDonald's donated a large set of computers to a school...
    // They were all Big Macs!
    if (ronaldAvailability) {
        guestCount -= 5;
        ronaldAvailability = false;
        matchingsDescription += "Krusty will handle the next five guests.\n";
        lastClown = "Ronald";
        continue;
    }

fixed


    // Krusty says: I had a one-man show on Broadway...
    // That's who showed up, one man!
    if (krustyAvailability) {
        guestCount -= 10;
        krustyAvailability = false;
        matchingsDescription += "Krusty will handle the first ten guests.\n";
        lastClown = "Krusty";
        continue;
    }

    // Ronald says: McDonald's donated a large set of computers to a school...
    // They were all Big Macs!
    if (ronaldAvailability) {
        guestCount -= 5;
        ronaldAvailability = false;
        matchingsDescription += "Ronald will handle the next five guests.\n";
        lastClown = "Ronald";
        continue;
    }

Additional Info

No response

JoshuaKGoldberg commented 1 year ago

Nice spot, thanks for reporting @rachel490!

JoshuaKGoldberg commented 1 year ago

Whoops, I neglected to mention in #253 that it fixed this issue. ✅