File tree Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -171,7 +171,7 @@ end program demo_reverse
171171```
172172
173173
174- ### ` to_char `
174+ ### ` to_string `
175175
176176#### Status
177177
@@ -183,7 +183,7 @@ Create a character string representing the value of the provided variable.
183183
184184#### Syntax
185185
186- ` res = [[stdlib_ascii(module):to_char (interface)]] (string) `
186+ ` res = [[stdlib_ascii(module):to_string (interface)]] (string) `
187187
188188#### Class
189189
@@ -200,11 +200,11 @@ The result is an intrinsic character type.
200200#### Example
201201
202202``` fortran
203- program demo_char_value
204- use stdlib_ascii, only : to_char
203+ program demo_string_value
204+ use stdlib_ascii, only : to_string
205205 implicit none
206- print'(a)', to_char (-3) ! returns "-3"
207- print'(a)', to_char (.true.) ! returns "T"
208- print'(a)', to_char (42) ! returns "42"
209- end program demo_char_value
206+ print'(a)', to_string (-3) ! returns "-3"
207+ print'(a)', to_string (.true.) ! returns "T"
208+ print'(a)', to_string (42) ! returns "42"
209+ end program demo_string_value
210210```
You can’t perform that action at this time.
0 commit comments