diff --git a/src/MemoryPack.Core/Attributes.cs b/src/MemoryPack.Core/Attributes.cs index 4f3befa..9ace47c 100644 --- a/src/MemoryPack.Core/Attributes.cs +++ b/src/MemoryPack.Core/Attributes.cs @@ -155,4 +155,4 @@ public sealed class GenerateTypeScriptAttribute : Attribute } [AttributeUsage(AttributeTargets.Field | AttributeTargets.Property)] -public sealed class SuppressDefaultInitialization : Attribute; +public sealed class SuppressDefaultInitializationAttribute : Attribute; diff --git a/src/MemoryPack.Generator/MemoryPackGenerator.Emitter.cs b/src/MemoryPack.Generator/MemoryPackGenerator.Emitter.cs index 37ee6c5..007cbed 100644 --- a/src/MemoryPack.Generator/MemoryPackGenerator.Emitter.cs +++ b/src/MemoryPack.Generator/MemoryPackGenerator.Emitter.cs @@ -181,7 +181,7 @@ string WithEscape(ISymbol symbol) { if (type.IsUnmanagedType) { - sb.Append("GanerateType unmanaged "); + sb.Append("GenerateType unmanaged "); } else {