From 9f24a854743a0f985e0524a46c7c4117d4f7013f Mon Sep 17 00:00:00 2001 From: Jesse Xu Date: Tue, 12 Sep 2023 11:44:19 +0800 Subject: [PATCH] Fix Readme example --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 937d4491..9cdb7bcb 100644 --- a/README.md +++ b/README.md @@ -176,7 +176,7 @@ For more advanced or custom constraints, `protovalidate` allows for CEL expressi message User { int32 age = 1 [(buf.validate.field).cel = { id: "user.age", - expression: "this.age < 18 ? 'User must be at least 18 years old': ''" + expression: "this < 18 ? 'User must be at least 18 years old': ''" }]; } ```