Skip to content

Commit

Permalink
Update ch05-00-function.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Euler-37 authored Mar 27, 2024
1 parent 29d9acd commit 3d4713c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ch05-00-function.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 3d4713c

Please sign in to comment.