Skip to content

Commit 37636b2

Browse files
committed
Fixed grammar
1 parent a1785e4 commit 37636b2

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

docs/pages/basics/destructuring-spread.md

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

33
C# supports [a limited set of destructuring](https://learn.microsoft.com/en-us/dotnet/csharp/fundamentals/functional/deconstruct) and spread operations compared to JS and while generally useful, are not as powerful (and potentially dangerous?) as JS destructuring and spread.
44

5-
In JavaScript, destructuring and spread a commonly used to perform object shape manipulations and transformations while in C#, they are more restricted in that sense and are more basic operations.
5+
In JavaScript, destructuring and spread are commonly used to perform object shape manipulations and transformations while in C#, they are more restricted in that sense and are more basic operations.
66

77
Let's take a look.
88

src/csharp/csharp-notebook.dib

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -906,3 +906,12 @@ var who = new {
906906
};
907907

908908
Console.WriteLine(who); // { FirstName = Ada, LastName = Lovelace, Nickname = Chuck }
909+
910+
#!csharp
911+
912+
var socials = (GitHub: "https://...", LinkedIn: "https://...");
913+
914+
var socialsObj = new {
915+
GitHub = "https://...",
916+
LinkedIn = "https://..."
917+
};

0 commit comments

Comments
 (0)