Skip to content

Commit

Permalink
♻️ rune文字列の扱いをよりシンプルにした
Browse files Browse the repository at this point in the history
  • Loading branch information
jiro4989 committed Mar 17, 2019
1 parent bce0c92 commit bcdc6fc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 1 addition & 3 deletions text.go
Original file line number Diff line number Diff line change
Expand Up @@ -198,12 +198,10 @@ func toVertical(s []string) (ret []string) {
for i := 0; i < l; i++ {
var line []string
for _, row := range s {
var colIdx int // rangeで指定する数値は配列の印字ではないため
for _, c := range row {
for colIdx, c := range []rune(row) {
if colIdx == i {
line = append(line, string(c))
}
colIdx++
}
}
if len(line) == 0 {
Expand Down
2 changes: 1 addition & 1 deletion version.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
package main

const Version = "1.3.4"
const Version = "1.3.5"

0 comments on commit bcdc6fc

Please sign in to comment.