浏览代码

Merge pull request #255 from jeremyschlatter/master

Fix typos in function comments.
Ben Hood 11 年之前
父节点
当前提交
ea0e8e6ec7
共有 2 个文件被更改,包括 3 次插入2 次删除
  1. 1 0
      AUTHORS
  2. 2 2
      session.go

+ 1 - 0
AUTHORS

@@ -33,3 +33,4 @@ Julien Da Silva <julien.dasilva@gmail.com>
 Dan Kennedy <daniel@firstcs.co.uk>
 Nick Dhupia<nick.dhupia@gmail.com>
 Yasuharu Goto <matope.ono@gmail.com>
+Jeremy Schlatter <jeremy.schlatter@gmail.com>

+ 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
 // 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.
 func (q *Query) ScanCAS(dest ...interface{}) (applied bool, err error) {
 	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
 // 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.
 //
 // As for INSERT .. IF NOT EXISTS, previous values will be returned as if