From 62240ebd7b6b70fb7af338067436a9196c68b48d Mon Sep 17 00:00:00 2001 From: neuecc Date: Tue, 30 Jul 2024 17:45:57 +0900 Subject: [PATCH] SuppressDefaultInitialization -> SuppressDefaultInitializationAttribute --- src/MemoryPack.Core/Attributes.cs | 2 +- src/MemoryPack.Generator/MemoryPackGenerator.Emitter.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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 {