Add example to cowsay docstring

This commit is contained in:
Thomas A. Christensen II 2022-01-11 19:23:39 -06:00
parent 2d893bd8bb
commit 1a3f07fa02
Signed by: millironx
GPG key ID: 139C07724802BC5D

View file

@ -51,6 +51,19 @@ Print an ASCII picture of a cow saying `message`
cowfiles support this, though.
- `tongue::AbstractString=" "`: A two-character string to be drawn in for the tongue. Not
all cowfiles support this.
# Example
```jldoctest
julia> cowsay("Have you mooed today?")
_______________________
< Have you mooed today? >
-----------------------
\ ^__^
\ (oo)\_______
(__)\ )\/\
||----w |
|| ||
```
"""
function cowsay(message::AbstractString; cow=default, eyes="oo", tongue=" ")
balloon = sayballoon(message)