Skip to content

Commit dcf8539

Browse files
committed
doc string update.
1 parent 94e9509 commit dcf8539

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/json_file_module.F90

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ module json_file_module
3131
! used to open a file and get data from it.
3232
!
3333
! A `json_file` contains only two items: an instance of a [[json_core(type)]],
34-
! which use used for all data manipulation, and a [[json_value]],
34+
! which is used for all data manipulation, and a [[json_value]] pointer,
3535
! which is used to construct the linked-list data structure.
3636
! Note that most methods in the `json_file` class are simply wrappers
3737
! to the lower-level routines in the [[json_value_module]].
@@ -56,6 +56,9 @@ module json_file_module
5656
! call json%destroy()
5757
! end program test
5858
!```
59+
!
60+
!@warning The `destroy()` method must be called before the variable
61+
! goes out of scope or a memory leak will occur.
5962

6063
type,public :: json_file
6164

@@ -92,7 +95,6 @@ module json_file_module
9295
json_file_print_1, &
9396
json_file_print_2
9497

95-
9698
!>
9799
! Rename a variable, specifying it by path
98100
generic,public :: rename => MAYBEWRAP(json_file_rename)

0 commit comments

Comments
 (0)