Skip to content

Commit c6d271d

Browse files
committed
Technical feedback
1 parent d893ff5 commit c6d271d

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

source/includes/fundamentals/code-examples/atlas-search/AtlasSearchExamples.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -133,9 +133,8 @@ public static List<Guitar> GeoWithinSearch()
133133
public static List<Guitar> InSearch()
134134
{
135135
// start-in-search
136-
var guitarList = new[] { "Fender", "Gibson" };
137136
var result = guitarsCollection.Aggregate()
138-
.Search(Builders<Guitar>.Search.In(g => g.Make, guitarList))
137+
.Search(Builders<Guitar>.Search.In(g => g.Make, ["Fender", "Gibson"]))
139138
.ToList();
140139
// end-in-search
141140
return result;

0 commit comments

Comments
 (0)