Skip to content

Commit b3ad8a8

Browse files
authored
Merge pull request #24 from SnakyBeaky/patch-1
Fix LINQ method typo in refiner example
2 parents d08e490 + 1e2d367 commit b3ad8a8

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)