Fix typo
This commit is contained in:
parent
2f03bbb12f
commit
9e50f0cbdf
|
@ -388,7 +388,7 @@ fn downcase {
|
||||||
|
|
||||||
fn chars {
|
fn chars {
|
||||||
"Takes a string and returns its characters as a list. Works only for strings with only ascii characters. Panics on any non-ascii characters."
|
"Takes a string and returns its characters as a list. Works only for strings with only ascii characters. Panics on any non-ascii characters."
|
||||||
(str as :string) -> match base :chars (str) {
|
(str as :string) -> match base :chars (str) with {
|
||||||
(:ok, chrs) -> chrs
|
(:ok, chrs) -> chrs
|
||||||
(:err, msg) -> panic! msg
|
(:err, msg) -> panic! msg
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user