aboutsummaryrefslogtreecommitdiff
path: root/stm.go
diff options
context:
space:
mode:
authorlukechampine <luke.champine@gmail.com>2016-04-03 13:54:52 -0400
committerlukechampine <luke.champine@gmail.com>2016-04-03 13:54:52 -0400
commit680211145fb0a720505eead0b9334451b8466916 (patch)
treef5190c512d87060738cc47702b8caaaa1c763827 /stm.go
parentgo fmt (diff)
downloadstm-680211145fb0a720505eead0b9334451b8466916.tar.gz
stm-680211145fb0a720505eead0b9334451b8466916.tar.xz
better pointer documentation
Diffstat (limited to 'stm.go')
-rw-r--r--stm.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/stm.go b/stm.go
index cb745a1..fc4a125 100644
--- a/stm.go
+++ b/stm.go
@@ -74,6 +74,7 @@ is not entirely possible due to Go's type system; we are forced to use
interface{} and type assertions. Furthermore, Haskell can enforce at compile
time that STM variables are not modified outside the STM monad. This is not
possible in Go, so be especially careful when using pointers in your STM code.
+Remember: modifying a pointer is a side effect!
*/
package stm