unicode/bidi: fix typo in variable name
Change-Id: I327ec47714aa3611fc494d099695a8213bcc9a24
GitHub-Last-Rev: 695749b3b099bffd1c1755ef47fd6b32a8894d60
GitHub-Pull-Request: golang/text#13
Reviewed-on: https://go-review.googlesource.com/c/text/+/230198
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
diff --git a/unicode/bidi/core.go b/unicode/bidi/core.go
index 48d1440..50deb66 100644
--- a/unicode/bidi/core.go
+++ b/unicode/bidi/core.go
@@ -480,15 +480,15 @@
// 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
}
}