Skip to content

Commit e934e4e

Browse files
Fix docs issues. (#292)
* Fix docs issues. * Add more xrefs * Update links in shape providers article. * Update core abstractions doc
1 parent f233415 commit e934e4e

6 files changed

Lines changed: 120 additions & 120 deletions

File tree

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ $ dotnet add package PolyType
1616

1717
which includes the core types and source generator for generating type shapes:
1818

19-
```C#
19+
```csharp
2020
using PolyType;
2121

2222
[GenerateShape]
@@ -48,7 +48,7 @@ Since the application uses a source generator to produce the shape for `Person`,
4848

4949
As a library author, PolyType makes it easy to write high-performance, feature-complete components by targeting its [core abstractions](https://eiriktsarpalis.github.io/PolyType/core-abstractions.html). For example, a parser API using PolyType might look as follows:
5050

51-
```C#
51+
```csharp
5252
public static class MyFancyParser
5353
{
5454
public static T? Parse<T>(string myFancyFormat) where T : IShapeable<T>;
@@ -57,7 +57,7 @@ public static class MyFancyParser
5757

5858
The [`IShapeable<T>` constraint](https://eiriktsarpalis.github.io/PolyType/api/PolyType.IShapeable-1.html) indicates that the parser only works with types augmented with PolyType metadata. This metadata can be provided using the PolyType source generator:
5959

60-
```C#
60+
```csharp
6161
Person? person = MyFancyParser.Parse<Person>(format); // Compiles
6262
6363
[GenerateShape] // Generate an IShapeable<TPerson> implementation

0 commit comments

Comments
 (0)