Skip to content

Commit e44990a

Browse files
authored
[Edit] C#: Data Types
Hello, there! I hope you are doing well! This pull request addresses two minor corrections in the documentation: 1. nuint vs. unint: The correct term for the unsigned native integer type in C# is nuint, not unint. 2. sbyte Terminology: It is more common and accurate to refer to sbyte as a "Signed Byte" rather than "Short Byte." Sources: [a] https://learn.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/integral-numeric-types#sbyte [b] https://learn.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/integral-numeric-types Thank you for your attention to this matter and for the article!
1 parent 21b0012 commit e44990a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

content/c-sharp/concepts/data-types/data-types.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,15 +24,15 @@ Value types are data types that are built-in to C#. The available types and thei
2424
| --------- | ----------------------- | ------------ |
2525
| `bool` | Boolean | 1 byte |
2626
| `byte` | Byte | 1 byte |
27-
| `sbyte` | Short Byte | 1 byte |
27+
| `sbyte` | Signed Byte | 1 byte |
2828
| `char` | Character | 2 bytes |
2929
| `decimal` | Decimal | 16 bytes |
3030
| `double` | Double | 8 bytes |
3131
| `float` | Float | 4 bytes |
3232
| `int` | Integer | 4 bytes |
3333
| `uint` | Unsigned Integer | 4 bytes |
3434
| `nint` | Native Integer | 4 or 8 bytes |
35-
| `unint` | Unsigned Native Integer | 4 or 8 bytes |
35+
| `nuint` | Unsigned Native Integer | 4 or 8 bytes |
3636
| `long` | Long | 8 bytes |
3737
| `ulong` | Unsigned Long | 8 bytes |
3838
| `short` | Short | 2 bytes |
@@ -51,7 +51,7 @@ float heightOfGiraffe = 908.32f;
5151
int seaLevel = -24;
5252
uint year = 2023u;
5353
nint pagesInBook = 412;
54-
unint milesToNewYork = 2597;
54+
nuint milesToNewYork = 2597;
5555
long circumferenceOfEarth = 25000l;
5656
ulong depthOfOcean = 28000ul;
5757
short tableHeight = 4;

0 commit comments

Comments
 (0)