From 2521b81626ebbdd7fb7711c80632f3808ea8705b Mon Sep 17 00:00:00 2001 From: daklqw Date: Wed, 14 Apr 2021 16:53:41 +0800 Subject: [PATCH] typo non-nagative => non-negative --- web/app/libs/uoj-data-lib.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/web/app/libs/uoj-data-lib.php b/web/app/libs/uoj-data-lib.php index 923c479..b38356b 100644 --- a/web/app/libs/uoj-data-lib.php +++ b/web/app/libs/uoj-data-lib.php @@ -233,7 +233,7 @@ } else { $n_ex_tests = getUOJConfVal($this->problem_conf, 'n_ex_tests', 0); if (!validateUInt($n_ex_tests) || $n_ex_tests < 0) { - throw new UOJProblemConfException("n_ex_tests must be a non-nagative integer"); + throw new UOJProblemConfException("n_ex_tests must be a non-negative integer"); } for ($num = 1; $num <= $n_ex_tests; $num++) { @@ -267,7 +267,7 @@ $n_sample_tests = getUOJConfVal($this->problem_conf, 'n_sample_tests', $n_tests); if (!validateUInt($n_sample_tests) || $n_sample_tests < 0) { - throw new UOJProblemConfException("n_sample_tests must be a non-nagative integer"); + throw new UOJProblemConfException("n_sample_tests must be a non-negative integer"); } if ($n_sample_tests > $n_ex_tests) { throw new UOJProblemConfException("n_sample_tests can't be greater than n_ex_tests");