Skip to content

Commit 1e2d367

Browse files
authored
Fix LINQ method typo in refiner example
1 parent 564aad1 commit 1e2d367

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

_docs/schema/schemagen/examples/refiner.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ internal class NullabilityRefiner : ISchemaRefiner
2828
public void Run(SchemaGeneratorContextBase context)
2929
{
3030
// find the type keyword
31-
var typeIntent = context.Intents.OfType<TypeIntent>().Firs();
31+
var typeIntent = context.Intents.OfType<TypeIntent>().First();
3232
// determine if the property has an override attribute
3333
var nullableAttribute = context.Attributes.OfType<NullableAttribute>().FirstOrDefault();
3434
var nullabilityOverride = nullableAttribute?.IsNullable;

0 commit comments

Comments
 (0)