Skip to content

Commit 2c3bcdb

Browse files
committed
corrected some mistakes in the documentation
1 parent 4b69e3d commit 2c3bcdb

File tree

1 file changed

+4
-22
lines changed

1 file changed

+4
-22
lines changed

doc/specs/stdlib_stringlist_type.md

Lines changed: 4 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -71,26 +71,16 @@ The result is of type `stringlist_index_type`.
7171

7272
```fortran
7373
program demo_fidx_bidx
74-
use stdlib_stringlist_type, only: stringlist_type, stringlist_index_type, fidx, bidx
74+
use stdlib_stringlist_type, only: stringlist_index_type, fidx, bidx
7575
implicit none
7676
77-
type(stringlist_type) :: stringlist
7877
type(stringlist_index_type) :: index
7978
8079
index = fidx(1)
81-
82-
!> inserting 2 elements to the stringlist
83-
call stringlist%insert_at( fidx(1), "Element No. one" )
84-
call stringlist%insert_at( index, "Element No. two" )
85-
! stringlist <-- {"Element No. two", "Element No. one"}
80+
! forward index 1
8681
8782
index = bidx(3)
88-
89-
!> inserting 2 elements to the stringlist
90-
call stringlist%insert_at( bidx(1), "Element No. three" )
91-
call stringlist%insert_at( index, "Element No. four" )
92-
! stringlist <-- {"Element No. two", "Element No. four",
93-
"Element No. one", "Element No. three"}
83+
! backward index 3
9484
9585
end program demo_fidx_bidx
9686
```
@@ -175,10 +165,6 @@ Pure subroutine.
175165
- `string`: Character scalar or [[stdlib_string_type(module):string_type(type)]].
176166
This argument is `intent(in)`.
177167

178-
#### Result value
179-
180-
No result.
181-
182168
#### Example
183169

184170
```fortran
@@ -230,7 +216,7 @@ Pure function.
230216
#### Argument
231217

232218
- `idx`: [[stdlib_stringlist_type(module):stringlist_index_type(type)]].
233-
This argument is intent(in).
219+
This argument is `intent(in)`.
234220

235221
#### Result value
236222

@@ -345,10 +331,6 @@ Pure subroutine.
345331

346332
No arguments.
347333

348-
#### Result value
349-
350-
No result.
351-
352334
#### Example
353335

354336
```fortran

0 commit comments

Comments
 (0)