未验证 提交 5688f2e6 编写于 作者: W wade zhang 提交者: GitHub

Merge pull request #22015 from taosdata/fix/sangshuduo/typos-in-examples

fix: refine csharp example
...@@ -36,7 +36,11 @@ dotnet build -c Release ...@@ -36,7 +36,11 @@ dotnet build -c Release
## Usage ## Usage
``` ```
Usage: mono taosdemo.exe [OPTION...] Usage with mono:
$ mono taosdemo.exe [OPTION...]
Usage with dotnet:
Usage: .\bin\Release\net5.0\taosdemo.exe [OPTION...]
--help Show usage. --help Show usage.
......
...@@ -72,7 +72,7 @@ namespace TDengineDriver ...@@ -72,7 +72,7 @@ namespace TDengineDriver
{ {
if ("--help" == argv[i]) if ("--help" == argv[i])
{ {
Console.WriteLine("Usage: mono taosdemo.exe [OPTION...]"); Console.WriteLine("Usage: taosdemo.exe [OPTION...]");
Console.WriteLine(""); Console.WriteLine("");
HelpPrint("--help", "Show usage."); HelpPrint("--help", "Show usage.");
Console.WriteLine(""); Console.WriteLine("");
...@@ -305,7 +305,7 @@ namespace TDengineDriver ...@@ -305,7 +305,7 @@ namespace TDengineDriver
this.conn = TDengine.Connect(this.host, this.user, this.password, db, this.port); this.conn = TDengine.Connect(this.host, this.user, this.password, db, this.port);
if (this.conn == IntPtr.Zero) if (this.conn == IntPtr.Zero)
{ {
Console.WriteLine("Connect to TDengine failed"); Console.WriteLine("Connect to TDengine failed. Reason: {0}\n", TDengine.Error(0));
CleanAndExitProgram(1); CleanAndExitProgram(1);
} }
else else
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册