Skip to content

Commit ede76d5

Browse files
milancurcicawvwgk
authored andcommitted
to_char -> to_string in the spec doc
1 parent 2dd83d9 commit ede76d5

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

doc/specs/stdlib_ascii.md

+8-8
Original file line numberDiff line numberDiff 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
```

0 commit comments

Comments
 (0)