Skip to content

Commit 297806d

Browse files
fix overtyping
1 parent a6a3a7c commit 297806d

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

src/LibTeXPrintf.jl

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ function texerrors()
189189
end
190190

191191
@doc raw"""
192-
texstring(str::String; [lw=0], [fail=true])
192+
texstring(str::AbstractString; [lw=0], [fail=true])
193193
194194
Write in a string rendered LaTeX from `str`. The keywork `lw` determines the linewidth used
195195
to render the text boxes, a linewidth of 0 means no linewidth limit.
@@ -217,7 +217,7 @@ tiny cute
217217
box for me
218218
```
219219
"""
220-
function texstring(tex::String; lw=0, #= debug =# fail=true)
220+
function texstring(tex::AbstractString; lw=0, #= debug =# fail=true)
221221
texsetlw!(lw) # set the linewidth for rendering
222222
c_str = libtexprintf.texstring(tex) # can be C_NULL
223223
if c_str == C_NULL
@@ -237,7 +237,7 @@ function texstring(tex::String; lw=0, #= debug =# fail=true)
237237
end
238238

239239
@doc raw"""
240-
texprint([io::IO=stdout], str::String; [lw=0], [fail=true])
240+
texprint([io::IO=stdout], str::AbstractString; [lw=0], [fail=true])
241241
242242
Printf to `io` a string rendered LaTeX from `str` without trailing newline. The keywork `lw`
243243
determines the linewidth used to render the text boxes, a linewidth of 0 means no linewidth
@@ -260,11 +260,11 @@ tiny cute
260260
box for me
261261
```
262262
"""
263-
texprint(tex::String; lw=0, #= debug =# fail=true) = texprint(stdout, tex; lw, fail)
264-
texprint(io::IO, tex::String; lw=0, #= debug =# fail=true) = print(io, texstring(tex; lw, fail))
263+
texprint(tex::AbstractString; lw=0, #= debug =# fail=true) = texprint(stdout, tex; lw, fail)
264+
texprint(io::IO, tex::AbstractString; lw=0, #= debug =# fail=true) = print(io, texstring(tex; lw, fail))
265265

266266
@doc raw"""
267-
texprintln([io::IO=stdout], str::String; [lw=0], [fail=true])
267+
texprintln([io::IO=stdout], str::AbstractString; [lw=0], [fail=true])
268268
269269
Same as [texprint](@ref) with a trailing newline.
270270
@@ -283,7 +283,7 @@ box for me
283283
284284
```
285285
"""
286-
texprintln(tex::String; lw=0, #= debug =# fail=true) = texprintln(stdout, tex; lw, fail)
287-
texprintln(io::IO, tex::String; lw=0, #= debug =# fail=true) = println(io, texstring(tex; lw, fail))
286+
texprintln(tex::AbstractString; lw=0, #= debug =# fail=true) = texprintln(stdout, tex; lw, fail)
287+
texprintln(io::IO, tex::AbstractString; lw=0, #= debug =# fail=true) = println(io, texstring(tex; lw, fail))
288288

289289
end

0 commit comments

Comments
 (0)