Skip to content

Commit 6c99ca3

Browse files
authored
Update README.md
1 parent dcfe341 commit 6c99ca3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -422,12 +422,12 @@ public partial class UnionSampleFormatter
422422
Union can be assembled in code via `DynamicUnionFormatter<T>`.
423423

424424
```csharp
425-
var formatter = new DynamicUnionFormatter<IFooBarBaz>(new[]
426-
{
425+
// (ushort, Type)[]
426+
var formatter = new DynamicUnionFormatter<IFooBarBaz>(
427427
(0, typeof(Foo)),
428428
(1, typeof(Bar)),
429429
(2, typeof(Baz))
430-
});
430+
);
431431

432432
MemoryPackFormatterProvider.Register(formatter);
433433
```

0 commit comments

Comments
 (0)