Skip to content

Commit 3e44cce

Browse files
committed
doc: 删除在中文语境下显得很怪的文档注释开头
1 parent 3386c0e commit 3e44cce

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

feishu/client.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ type BotClient struct {
5252
Token string // 机器人令牌。
5353
}
5454

55-
// SendText 方法发送文本信息。
55+
// 方法发送文本信息。
5656
// 目前只支持文本信息。信息内容需要包含指定关键字。
5757
func (c BotClient) SendText(ctx context.Context, msg string) error {
5858
c.logger().InfoContext(ctx, "发送文本消息", slog.String("msg", msg))
@@ -63,7 +63,7 @@ func (c BotClient) SendText(ctx context.Context, msg string) error {
6363
})
6464
}
6565

66-
// Send 方法发送信息。
66+
// 方法发送信息。
6767
// 目前只支持文本信息。信息内容需要包含指定关键字。
6868
func (c BotClient) Send(ctx context.Context, msg Message) error {
6969
c.logger().InfoContext(ctx, "发送消息", slog.String("msgType", msg.MsgType))

wx/client.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ type BotClient struct {
6060
Key string // 机器人令牌。
6161
}
6262

63-
// SendText 方法发送文本信息。
63+
// 方法发送文本信息。
6464
// 目前只支持文本信息。
6565
func (c BotClient) SendText(ctx context.Context, msg string) error {
6666
c.logger().InfoContext(ctx, "发送文本消息", slog.String("msg", msg))
@@ -71,7 +71,7 @@ func (c BotClient) SendText(ctx context.Context, msg string) error {
7171
})
7272
}
7373

74-
// SendMarkdown 发送 Markdown 信息。
74+
// 发送 Markdown 信息。
7575
func (c BotClient) SendMarkdown(ctx context.Context, msg string) error {
7676
c.logger().InfoContext(ctx, "发送 Markdown 消息", slog.String("msg", msg))
7777

@@ -81,7 +81,7 @@ func (c BotClient) SendMarkdown(ctx context.Context, msg string) error {
8181
})
8282
}
8383

84-
// Send 方法发送信息。
84+
// 方法发送信息。
8585
// 目前只支持文本信息。
8686
func (c BotClient) Send(ctx context.Context, msg Message) error {
8787
c.logger().InfoContext(ctx, "发送消息", slog.String("msgType", msg.MsgType))

0 commit comments

Comments
 (0)