X-Git-Url: https://git.distorted.org.uk/~mdw/sod/blobdiff_plain/0a2d4b68b1183e5a867b30b9ade93a3240f0287b..e674612eb9e1a1dde2522260163a93a13ed44a0f:/doc/concepts.tex

diff --git a/doc/concepts.tex b/doc/concepts.tex
index c938c47..b8637e8 100644
--- a/doc/concepts.tex
+++ b/doc/concepts.tex
@@ -281,7 +281,7 @@ about these slot members: C code can access them in the usual way.
 For example, if @|MyClass| has the nickname @|mine|, and defines a slot @|x|
 of type @|int|, then the simple function
 \begin{prog}
-  int get_x(MyClass *m) \{ return (m->mine.x); \}
+  int get_x(MyClass *m) \{ return (m@->mine.x); \}
 \end{prog}
 will extract the value of @|x| from an instance of @|MyClass|.
 
@@ -355,9 +355,9 @@ function using @|malloc| might work as follows.
 \begin{prog}
   void *new_instance(const SodClass *c) \\
   \{ \\ \ind
-    void *p = malloc(c->cls.initsz); \\
+    void *p = malloc(c@->cls.initsz); \\
     if (!p) return (0); \\
-    c->cls.init(p); \\
+    c@->cls.init(p); \\
     return (p); \- \\
   \}
 \end{prog}
