Skip to content

Commit 9e8e927

Browse files
committed
fix: remove typo
1 parent ad0caea commit 9e8e927

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

doc/shorturl-en.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -463,7 +463,7 @@ Till now, we’ve done the modification of API Gateway. All the manually added c
463463
func (l *ShortenLogic) Shorten(in *transform.ShortenReq) (*transform.ShortenResp, error) {
464464
// manual code start, generates shorturl
465465
key := hash.Md5Hex([]byte(in.Url))[:6]
466-
_, err := l.svcCtx.Model.Insert(l.ctx, &model.Shorturl{{
466+
_, err := l.svcCtx.Model.Insert(l.ctx, &model.Shorturl{
467467
Shorten: key,
468468
Url: in.Url,
469469
})

0 commit comments

Comments
 (0)