From c2cc991525a4eedb970d8fdb3c10a92482ecb84d Mon Sep 17 00:00:00 2001 From: freespace8 Date: Wed, 1 Nov 2023 16:46:28 +0800 Subject: [PATCH] fix(doc): user -> users (#719) --- pages/gen/sql_annotation.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pages/gen/sql_annotation.md b/pages/gen/sql_annotation.md index 41b4c0448bd..9a40f2664ef 100644 --- a/pages/gen/sql_annotation.md +++ b/pages/gen/sql_annotation.md @@ -248,7 +248,7 @@ The `for` expression iterates over a slice to generate the SQL, let's explain by ```go // SELECT * FROM @@table // {{where}} -// {{for _,user:=range user}} +// {{for _,user:=range users}} // {{if user.Name !="" && user.Age >0}} // (username = @user.Name AND age=@user.Age AND role LIKE concat("%",@user.Role,"%")) OR // {{end}}