Browse Source

Fix typos in function comments.

Jeremy Schlatter 11 years ago
parent
commit
7051bb1c9b
1 changed files with 2 additions and 2 deletions
  1. 2 2
      session.go

+ 2 - 2
session.go

@@ -331,7 +331,7 @@ func (q *Query) Scan(dest ...interface{}) error {
 
 
 // ScanCAS executes a lightweight transaction (i.e. an UPDATE or INSERT
 // ScanCAS executes a lightweight transaction (i.e. an UPDATE or INSERT
 // statement containing an IF clause). If the transaction fails because
 // statement containing an IF clause). If the transaction fails because
-// the existing values did not match, the previos values will be stored
+// the existing values did not match, the previous values will be stored
 // in dest.
 // in dest.
 func (q *Query) ScanCAS(dest ...interface{}) (applied bool, err error) {
 func (q *Query) ScanCAS(dest ...interface{}) (applied bool, err error) {
 	iter := q.Iter()
 	iter := q.Iter()
@@ -349,7 +349,7 @@ func (q *Query) ScanCAS(dest ...interface{}) (applied bool, err error) {
 
 
 // MapScanCAS executes a lightweight transaction (i.e. an UPDATE or INSERT
 // MapScanCAS executes a lightweight transaction (i.e. an UPDATE or INSERT
 // statement containing an IF clause). If the transaction fails because
 // statement containing an IF clause). If the transaction fails because
-// the existing values did not match, the previos values will be stored
+// the existing values did not match, the previous values will be stored
 // in dest map.
 // in dest map.
 //
 //
 // As for INSERT .. IF NOT EXISTS, previous values will be returned as if
 // As for INSERT .. IF NOT EXISTS, previous values will be returned as if