From 3d2812686a4f198b856edbeca371ae1dd3bff2ed Mon Sep 17 00:00:00 2001 From: newgithub Date: Sat, 17 Aug 2024 12:46:02 +0800 Subject: [PATCH] Update 09-validate.md (#212) type err --- .../current/component/middleware/09-validate.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/i18n/en/docusaurus-plugin-content-docs/current/component/middleware/09-validate.md b/i18n/en/docusaurus-plugin-content-docs/current/component/middleware/09-validate.md index 45c30524c..7bc89d427 100644 --- a/i18n/en/docusaurus-plugin-content-docs/current/component/middleware/09-validate.md +++ b/i18n/en/docusaurus-plugin-content-docs/current/component/middleware/09-validate.md @@ -33,7 +33,7 @@ Here are some examples of parameter validation for several common situations, yo // id must be greater than 0 int64 id = 1 [(validate.rules).int64 = {gt: 0}]; // age must be in the range (0, 120] -int32 age = 2 [(validate.rules).int64 = {gt:0, lte: 120}]; +int32 age = 2 [(validate.rules).int32 = {gt:0, lte: 120}]; // code must be either 1, 2, or 3 uint32 code = 3 [(validate.rules).uint32 = {in: [1,2,3]}]; // score cannot be 0 nor 0.99