浏览代码

Fixed example in readme.

Herbert Vojčík 12 年之前
父节点
当前提交
a9754879f1
共有 1 个文件被更改,包括 3 次插入3 次删除
  1. 3 3
      README.md

+ 3 - 3
README.md

@@ -55,7 +55,7 @@ You can also iterate arrays in the model using `TagBrush >> trapIter:tag:do:`.
 To see viewmodel->view update working, try this in Workspace:
 To see viewmodel->view update working, try this in Workspace:
 
 
 ```smalltalk
 ```smalltalk
-AppVM modify: #(#todos) do: [ :old | old, { 'text'->'try the guts'. 'done'->true } ]
+AppVM modify: #(#todos) do: [ :old | old, { #{'text'->'try the guts'. 'done'->true} } ]
 ```
 ```
 
 
 The number and list of items should update. If you do
 The number and list of items should update. If you do
@@ -71,6 +71,6 @@ When using `TrappedMWIsolated` wrapper class,  `read:do:` and `modify:do:`
 guard the data by doing deep copies behind the scene.
 guard the data by doing deep copies behind the scene.
 
 
 If you wish to, you can change the raw data you put into `model:` by hand,
 If you wish to, you can change the raw data you put into `model:` by hand,
-but then be sure to call `AppVM dispatcher changed: #('title')` or similar
+but then be sure to call `AppVM dispatcher changed: #(#title)` or similar
 (you can do `AppVM dispatcher changed: #()` to signal everything in `AppVM` has changed,
 (you can do `AppVM dispatcher changed: #()` to signal everything in `AppVM` has changed,
-but then everything depending upon it will redraw).
+but then everything depending upon it will redraw).