Add example to cowsay docstring
This commit is contained in:
parent
2d893bd8bb
commit
1a3f07fa02
1 changed files with 13 additions and 0 deletions
|
@ -51,6 +51,19 @@ Print an ASCII picture of a cow saying `message`
|
||||||
cowfiles support this, though.
|
cowfiles support this, though.
|
||||||
- `tongue::AbstractString=" "`: A two-character string to be drawn in for the tongue. Not
|
- `tongue::AbstractString=" "`: A two-character string to be drawn in for the tongue. Not
|
||||||
all cowfiles support this.
|
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=" ")
|
function cowsay(message::AbstractString; cow=default, eyes="oo", tongue=" ")
|
||||||
balloon = sayballoon(message)
|
balloon = sayballoon(message)
|
||||||
|
|
Loading…
Reference in a new issue