Skip to content

Commit 872f346

Browse files
committed
fix typo.
minor comment change.
1 parent 80ebf84 commit 872f346

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/json_file_module.F90

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ module json_file_module
5757
! end program test
5858
!```
5959
!
60-
!@note The `destroy()` method may be called to free the memory, but
60+
!@note The `destroy()` method may be called to free the memory if necessary.
6161
! [[json_file(type)]] includes a finalizer that also calls
6262
! `destroy()` when the variable goes out of scope.
6363

@@ -867,7 +867,7 @@ subroutine json_file_load_from_string(me, str)
867867
class(json_file),intent(inout) :: me
868868
character(kind=CK,len=*),intent(in) :: str !! string to load JSON data from
869869

870-
call me%core%load(str=str, p=me%p)
870+
call me%core%serialize(me%p, str)
871871

872872
end subroutine json_file_load_from_string
873873
!*****************************************************************************************

0 commit comments

Comments
 (0)