Skip to content
This repository has been archived by the owner on Jul 27, 2019. It is now read-only.

Commit

Permalink
Simplify string slice
Browse files Browse the repository at this point in the history
  • Loading branch information
kinbiko committed Jun 1, 2019
1 parent abd2ff0 commit 9450266
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion r2k.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ func sub(in string) (kana, error) {
var k kana
for l := 4; k.val == "" && l > 0; l-- {
if len(in) >= l {
k = r2k[in[len(in)-l:len(in)]]
k = r2k[in[len(in)-l:]]
}
}
if k.val == "" {
Expand Down

0 comments on commit 9450266

Please sign in to comment.