File tree 1 file changed +8
-8
lines changed
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
171
171
```
172
172
173
173
174
- ### ` to_char `
174
+ ### ` to_string `
175
175
176
176
#### Status
177
177
@@ -183,7 +183,7 @@ Create a character string representing the value of the provided variable.
183
183
184
184
#### Syntax
185
185
186
- ` res = [[stdlib_ascii(module):to_char (interface)]] (string) `
186
+ ` res = [[stdlib_ascii(module):to_string (interface)]] (string) `
187
187
188
188
#### Class
189
189
@@ -200,11 +200,11 @@ The result is an intrinsic character type.
200
200
#### Example
201
201
202
202
``` 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
205
205
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
210
210
```
You can’t perform that action at this time.
0 commit comments