Permalink
Browse files

Fixing the doc for creating txnref and txnlong

  • Loading branch information...
1 parent 4df3ce6 commit 422ec01988003635668ef7cf370186bee3b1d69a @sai-venkat sai-venkat committed Sep 5, 2012
Showing with 4 additions and 4 deletions.
  1. +4 −4 README.md
View
@@ -12,8 +12,8 @@ Example
import static org.multiverse.api.StmUtils.*;
public class Account{
- private final TxnRef<Date> lastModified = newTxnRef();
- private final TxnLong amount = newTxnLong();
+ private final TxnRef<Date> lastModified = new TxnRef();
+ private final TxnLong amount = new TxnLong();
public Account(long amount){
this.amount.set(amount);
@@ -43,7 +43,7 @@ Example
}
}
- And it can be called like this:
+ # And it can be called like this:
Account account1 = new Account(10);
Account account2 = new Account(20)
@@ -52,4 +52,4 @@ Example
No instrumentation.
-------------------------
-Multiverse doesn't rely on instrumentation, so is easy to integrate in existing projects.
+Multiverse doesn't rely on instrumentation, so is easy to integrate in existing projects.

0 comments on commit 422ec01

Please sign in to comment.