Skip to content

Commit

Permalink
unicode/bidi: fix typo in variable name
Browse files Browse the repository at this point in the history
Change-Id: I327ec47714aa3611fc494d099695a8213bcc9a24
GitHub-Last-Rev: 695749b
GitHub-Pull-Request: #13
Reviewed-on: https://go-review.googlesource.com/c/text/+/230198
Reviewed-by: Brad Fitzpatrick <[email protected]>
Run-TryBot: Brad Fitzpatrick <[email protected]>
TryBot-Result: Gobot Gobot <[email protected]>
  • Loading branch information
Tyson Andre authored and bradfitz committed Apr 25, 2020
1 parent 06d492a commit 6ca2caf
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions unicode/bidi/core.go
Original file line number Diff line number Diff line change
Expand Up @@ -480,15 +480,15 @@ func (s *isolatingRunSequence) resolveWeakTypes() {

// Rule W1.
// Changes all NSMs.
preceedingCharacterType := s.sos
precedingCharacterType := s.sos
for i, t := range s.types {
if t == NSM {
s.types[i] = preceedingCharacterType
s.types[i] = precedingCharacterType
} else {
if t.in(LRI, RLI, FSI, PDI) {
preceedingCharacterType = ON
precedingCharacterType = ON
}
preceedingCharacterType = t
precedingCharacterType = t
}
}

Expand Down

0 comments on commit 6ca2caf

Please sign in to comment.