Browse Source

修正示例代码里的变量引用错误。

(仅接口文档里的示例代码错误,服务端程序正确)
master
王厅 1 year ago
parent
commit
d4f58b7b0a
  1. 2
      mes/客户端代码(C#).md

2
mes/客户端代码(C#).md

@ -89,7 +89,7 @@ public sealed class Client3
var chars = new char[hash.Length * 2]; var chars = new char[hash.Length * 2];
for (var i = 0; i < hash.Length; i++) for (var i = 0; i < hash.Length; i++)
{ {
var b = bytes[i]; var b = hash[i];
var offset = i * 2; var offset = i * 2;
chars[offset] = hex[b / 16]; chars[offset] = hex[b / 16];
chars[offset + 1] = hex[b % 16]; chars[offset + 1] = hex[b % 16];

Loading…
Cancel
Save