Skip to content

Commit 30d99c3

Browse files
Fix introductions (#2198)
1 parent eff3003 commit 30d99c3

File tree

7 files changed

+9
-9
lines changed

7 files changed

+9
-9
lines changed

concepts/attributes/introduction.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,4 @@ class MyClass
1515

1616
This declarative metadata only associates additional structured information to the code and does not modify its behavior, but that metadata is used by other part of the code to change how its target would behave or add, change or remove, restrict some its functionalities.
1717

18-
There are many [predefined and reserved attributes](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/attributes/general#conditional-attribute), for example: `Flags`, `Obsolete`, `Conditional`, each has a specific that can be looked up on the C# documentation. Note that the full name of an attribute like [`Flags`](https://docs.microsoft.com/en-us/dotnet/api/system.flagsattribute
18+
There are many [predefined and reserved attributes](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/attributes/general#conditional-attribute), for example: `Flags`, `Obsolete`, `Conditional`, each has a specific that can be looked up on the C# documentation. Note that the full name of an attribute like [`Flags`](https://docs.microsoft.com/en-us/dotnet/api/system.flagsattribute)

concepts/do-while-loops/about.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# About
22

3-
To repeatedly execute logic, one can use loops. If the code in a loop should always be executed at least once, a `do/while` loop can be used:
3+
To repeatedly execute logic, one can use loops. If the code in a loop should always be executed at least once, a `do`/`while` loop can be used:
44

55
```csharp
66
int x = 0;

concepts/do-while-loops/introduction.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Introduction
22

3-
A less commonly used alternative to the above syntax is a `do-while` loop:
3+
If the code in a loop should always be executed at least once, a `do`/`while` loop can be used:
44

55
```csharp
66
int x = 23;

concepts/flag-enums/introduction.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
The C# [`enum` type](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/enum) represents a fixed set of named constants (an enumeration).
44

5-
Normally, one `enum` member can only refer to exactly one of those named constants. However, sometimes it is useful to refer to more than one constant. To do so, one can annotate the `enum` with the [`Flags` attribute](https://docs.microsoft.com/en-us/dotnet/api/system.flagsattribute
5+
Normally, one `enum` member can only refer to exactly one of those named constants. However, sometimes it is useful to refer to more than one constant. To do so, one can annotate the `enum` with the [`Flags` attribute](https://docs.microsoft.com/en-us/dotnet/api/system.flagsattribute)
66

77
A flags enum can be defined as follows (using binary integer notation `0b`):
88

exercises/concept/attack-of-the-trolls/.docs/introduction.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@ class MyClass
1515
}
1616
```
1717

18-
This declarative metadata only associates additional structured information to the code and does not modify its behavior, but that metadata is used by other parts of the code to change how its target would behave or add, change or remove, restrict some its functionalities.
18+
This declarative metadata only associates additional structured information to the code and does not modify its behavior, but that metadata is used by other part of the code to change how its target would behave or add, change or remove, restrict some its functionalities.
1919

20-
There is many [predefined and reserved attributes](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/attributes/general#conditional-attribute), for example: `Flags`, `Obsolete`, `Conditional`, each has a specific that can be looked up on the C# documentation. Note that the full name of an attribute like [`Flags`](https://docs.microsoft.com/en-us/dotnet/api/system.flagsattribute)
20+
There are many [predefined and reserved attributes](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/attributes/general#conditional-attribute), for example: `Flags`, `Obsolete`, `Conditional`, each has a specific that can be looked up on the C# documentation. Note that the full name of an attribute like [`Flags`](https://docs.microsoft.com/en-us/dotnet/api/system.flagsattribute)
2121

2222
## Flag Enums
2323

exercises/concept/interest-is-interesting/.docs/introduction.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ while (x > 10)
3030

3131
## Do While Loops
3232

33-
A less commonly used alternative to the above syntax is a `do-while` loop:
33+
If the code in a loop should always be executed at least once, a `do`/`while` loop can be used:
3434

3535
```csharp
3636
int x = 23;

exercises/concept/tim-from-marketing/.docs/introduction.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,10 +61,10 @@ The `??` operator allows one to return a default value when the value is `null`:
6161

6262
```csharp
6363
string? name1 = "John";
64-
name1 ??= "Paul"; // => "John"
64+
name1 ?? "Paul"; // => "John"
6565
6666
string? name2 = null;
67-
name2 ??= "George"; // => "George"
67+
name2 ?? "George"; // => "George"
6868
```
6969

7070
The `?.` operator allows one to call members safely on a possibly `null` value:

0 commit comments

Comments
 (0)