From 7c23f844ce066cd319521c41b187510b0eb8bd71 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?ZhuoYang=20Wu=28=E9=98=BF=E7=A6=BB=29?= Date: Mon, 5 Jun 2023 12:30:50 +0800 Subject: [PATCH] docs: fix error syntax (#42824) Co-authored-by: Ali --- components/form/demo/register.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/form/demo/register.tsx b/components/form/demo/register.tsx index 0d55048161..f004b481ad 100644 --- a/components/form/demo/register.tsx +++ b/components/form/demo/register.tsx @@ -176,7 +176,7 @@ const App: React.FC = () => { if (!value || getFieldValue('password') === value) { return Promise.resolve(); } - return Promise.reject(new Error('The two passwords that you entered do not match!')); + return Promise.reject(new Error('The new password that you entered do not match!')); }, }), ]}