Skip to content

Commit e5ef7ea

Browse files
cary-hucary hu
andauthored
docs: typos (#1988)
Co-authored-by: cary hu <[email protected]>
1 parent ecf16ee commit e5ef7ea

File tree

9 files changed

+12
-12
lines changed

9 files changed

+12
-12
lines changed

docs/docs/configuration/additional-mapping-parameters.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ but higher than a by-name matched regular member mapping.
6262
</Tabs>
6363

6464
:::info
65-
Mappings with additional parameters do have some limitions:
65+
Mappings with additional parameters do have some limitations:
6666

6767
- The additional parameters are not passed to nested mappings.
6868
- A mapping with additional mapping parameters cannot be the default mapping

docs/docs/configuration/analyzer-diagnostics/RMG060.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ in such cases.
4545
[Mapper]
4646
public partial class CarMapper
4747
{
48-
public paratial List<CarDto> CarsToCarDtos(List<Car> cars);
48+
public partial List<CarDto> CarsToCarDtos(List<Car> cars);
4949

5050
// highlight-start
5151
[UserMapping(Default = true)]

docs/docs/configuration/constant-generated-values.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ This also works for constructor parameters.
5656

5757
### Named mapping
5858

59-
The name of the value generator can be overriden by the `NamedMapping` attribute:
59+
The name of the value generator can be overridden by the `NamedMapping` attribute:
6060

6161
```csharp
6262
[MapValue(nameof(CarDto.SourceSystem), Use = "CustomGetSourceSystem")]

docs/docs/configuration/enum.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ are not affected by naming strategies.
115115

116116
## Manually mapped enum values
117117

118-
To explicitly map enum values the `MapEnumValueAttibute` can be used.
118+
To explicitly map enum values the `MapEnumValueAttribute` can be used.
119119
Attribute is only valid on enum-to-enum, enum-to-string and string-to-enum mappings.
120120

121121
Explicit enum mappings are not affected by enum naming strategies.
@@ -189,7 +189,7 @@ the `RequiredEnumMappingStrategy` can be used. By default this property will inh
189189

190190
Sets the `RequiredEnumMappingStrategy` for all methods within the mapper,
191191
by default it is `Both` requiring all members to be mapped.
192-
This can be overriden by individual mapping methods using `MapperRequiredMappingAttribute`.
192+
This can be overridden by individual mapping methods using `MapperRequiredMappingAttribute`.
193193

194194
```csharp
195195
// highlight-start

docs/docs/configuration/external-mappings.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ In order for Mapperly to find the mappings, they must be made known with `UseMap
3131
public static class BananaMapper
3232
{
3333
public static Banana MapBanana(BananaDto dto)
34-
=> new Banana(dto.Weigth);
34+
=> new Banana(dto.Weight);
3535
}
3636
```
3737

@@ -55,7 +55,7 @@ In order for Mapperly to find the mappings, they must be made known with `UseMap
5555
public static class BananaMapper
5656
{
5757
public static Banana MapBanana(BananaDto dto)
58-
=> new Banana(dto.Weigth);
58+
=> new Banana(dto.Weight);
5959
}
6060
```
6161

docs/docs/configuration/mapper.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ or by setting the `IgnoreObsoleteMembersStrategy` option of the `MapperAttribute
156156

157157
Sets the `IgnoreObsoleteMembersStrategy` for all methods within the mapper,
158158
by default it is `None` allowing obsolete source and target members to be mapped.
159-
This can be overriden by individual mapping methods using `MapperIgnoreObsoleteMembersAttribute`.
159+
This can be overridden by individual mapping methods using `MapperIgnoreObsoleteMembersAttribute`.
160160

161161
```csharp
162162
// highlight-start
@@ -259,7 +259,7 @@ the `RequiredMappingStrategy` can be used.
259259

260260
Sets the `RequiredMappingStrategy` for all methods within the mapper,
261261
by default it is `Both` requiring all members to be mapped.
262-
This can be overriden by individual mapping methods using `MapperRequiredMappingAttribute`.
262+
This can be overridden by individual mapping methods using `MapperRequiredMappingAttribute`.
263263

264264
```csharp
265265
// highlight-start

docs/docs/configuration/private-members.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ This allows you to use inaccessible constructors but only map accessible members
9696
## Controlling member accessibility
9797

9898
In addition to mapping inaccessible members,
99-
`MemberVisbility` can be used to control which members are considered, depending on their accessibility modifier.
99+
`MemberVisibility` can be used to control which members are considered, depending on their accessibility modifier.
100100
For instance `MemberVisibility.Private | MemberVisibility.Protected` will cause Mapperly to only consider private and protected members,
101101
generating an unsafe accessor if needed.
102102

docs/docs/configuration/user-implemented-methods.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ The mapper will respect the `ref` keyword on the target parameter when using an
105105
[Mapper(AllowNullPropertyAssignment = false, UseDeepCloning = true, RequiredMappingStrategy = RequiredMappingStrategy.Source)]
106106
public static partial class UseUserMethodWithRef
107107
{
108-
[MapProperty(nameof(ArrayObject.IntArray), nameof(ArrayObject.IntArray), Use = nameof(MapArray))] // `Use` is required otheriwse it will generate it's own
108+
[MapProperty(nameof(ArrayObject.IntArray), nameof(ArrayObject.IntArray), Use = nameof(MapArray))] // `Use` is required otherwise it will generate it's own
109109
public static partial void Merge([MappingTarget] ArrayObject target, ArrayObject second);
110110

111111
private static void MapArray([MappingTarget] ref int[] target, int[] second) => target = [.. target, .. second.Except(target)];

docs/docs/contributing/debugging.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ Check [here](../configuration/generated-source.mdx) on how to inspect the genera
1313
## Unit tests
1414

1515
To debug the Mapperly in unit tests, set a breakpoint
16-
in the code of Mappery which you want to debug and run the tests in debug mode.
16+
in the code of Mapperly which you want to debug and run the tests in debug mode.
1717

1818
## Integration tests
1919

0 commit comments

Comments
 (0)