From 3d4713c1d47d69975e0945e6b165759a525af17d Mon Sep 17 00:00:00 2001 From: Euler-37 <64597797+Euler-37@users.noreply.github.com> Date: Wed, 27 Mar 2024 15:17:33 +0800 Subject: [PATCH] Update ch05-00-function.md --- src/ch05-00-function.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ch05-00-function.md b/src/ch05-00-function.md index b9c8825..5ac863b 100644 --- a/src/ch05-00-function.md +++ b/src/ch05-00-function.md @@ -44,7 +44,7 @@ end function vector_norm function double_vec(vec) result(vec2) real, intent(in) :: vec(:) - real :: vec2(size(vec)) !可以返回数组 + real :: vec2(size(vec)) !可以返回数组,但是具有dimension属性,不能写在开头 vec2=vec*2