diff --git a/README.md b/README.md index d977580..a64c820 100644 --- a/README.md +++ b/README.md @@ -171,7 +171,7 @@ var options = new IdGeneratorOptions() WorkerId = 1 }; -var newId = new YitIdGenerator(options).NewLong(); +var newId = new YidGenerator(options).NewLong(); ``` #### 传统雪花算法 @@ -182,7 +182,7 @@ var options = new IdGeneratorOptions() WorkerId = 1 }; -var newId = new YitIdGenerator(options).NewLong(); +var newId = new YidGenerator(options).NewLong(); ``` #### options说明 diff --git a/src/Yitter.IdGenerator/YidGenerator.cs b/src/Yitter.IdGenerator/YidGenerator.cs index ea3952c..c7be142 100644 --- a/src/Yitter.IdGenerator/YidGenerator.cs +++ b/src/Yitter.IdGenerator/YidGenerator.cs @@ -14,7 +14,7 @@ using System.Threading; namespace Yitter.IdGenerator { - public class YitIdGenerator : IIdGenerator + public class YidGenerator : IIdGenerator { private ISnowWorker _SnowWorker { get; set; } @@ -25,7 +25,7 @@ namespace Yitter.IdGenerator } - public YitIdGenerator(IdGeneratorOptions options) + public YidGenerator(IdGeneratorOptions options) { if (options == null) {