Skip to content

Commit

Permalink
docs: Fix "Augment user code" example (#75041)
Browse files Browse the repository at this point in the history
  • Loading branch information
jfoshee authored Oct 16, 2024
1 parent d2e011d commit ee941ff
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/features/incremental-generators.cookbook.md
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ Provide that attribute in a `RegisterPostInitializationOutput` step. Register fo
```csharp
public partial class UserClass
{
[Generate]
[GeneratedNamespace.Generated]
public partial void UserMethod();
}
```
Expand All @@ -244,7 +244,7 @@ public class AugmentingGenerator : IIncrementalGenerator
{
}
}
""", Encoding.UTF8));
""", Encoding.UTF8)));

var pipeline = context.SyntaxProvider.ForAttributeWithMetadataName(
fullyQualifiedMetadataName: "GeneratedNamespace.GeneratedAttribute",
Expand Down

0 comments on commit ee941ff

Please # to comment.