From f2309139877a79c8be844656353d64a3afe8b582 Mon Sep 17 00:00:00 2001
From: Mark Wooding <mdw@distorted.org.uk>
Date: Sat, 27 Jul 2019 12:40:52 +0100
Subject: [PATCH] doc/concepts.tex: Replace prose description by a source
 example.

---
 doc/concepts.tex | 10 ++++++++--
 1 file changed, 8 insertions(+), 2 deletions(-)

diff --git a/doc/concepts.tex b/doc/concepts.tex
index 73ce9ed..3ab3da8 100644
--- a/doc/concepts.tex
+++ b/doc/concepts.tex
@@ -349,8 +349,14 @@ nickname.  Each of these members is also a structure, containing the
 corresponding class's slots, one member per slot.  There's nothing special
 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
+For example, given the definition
+\begin{prog}
+  [nick = mine]                                                 \\
+  class MyClass: SodObject \{                                   \\ \ind
+    int x;                                                    \-\\
+  \}
+\end{prog}
+the simple function
 \begin{prog}
   int get_x(MyClass *m) \{ return (m@->mine.x); \}
 \end{prog}
-- 
2.11.0

