Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
szabgab committed Jun 11, 2021
1 parent 8290af0 commit 8f3055e
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
2 changes: 2 additions & 0 deletions crystal/.ackrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
--ignore-dir=lib
--ignore-dir=bin
7 changes: 5 additions & 2 deletions crystal/examples/string_iterator.cr
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
text = "Crystal"
text.each_char {|chr| puts chr}
text = "Crystal" # STring
text.each_char {|chr|
puts chr # Char
puts chr.to_s # String
}
1 change: 1 addition & 0 deletions crystal/strings.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@

## Iterate over characters of a atring
{id: strings-iterator}
{i: each_char}

![](examples/string_iterator.cr)

Expand Down

0 comments on commit 8f3055e

Please sign in to comment.