chiark / gitweb /
Various, style: Generally prefer `: ' over ` : '.
[sod] / doc / tutorial.tex
index ac38e06c3379c4ea85030162224357ee34ecaf4f..3d90293169f700b198654598248cedcb02e9ddcc 100644 (file)
@@ -111,16 +111,16 @@ The following is a simple Sod input file.
 \begin{prog}
   /* -*-sod-*- */                                               \\+
 
-  code c : includes \{                                          \\
+  code c: includes \{                                           \\
   \#include "greeter.h"                                         \\
   \}                                                            \\+
 
-  code h : includes \{                                          \\
+  code h: includes \{                                           \\
   \#include <stdio.h>                                           \\
   \#include <sod/sod.h>                                         \\
   \}                                                            \\+
 
-  class Greeter : SodObject \{                                  \\ \ind
+  class Greeter: SodObject \{                                   \\ \ind
     void greet(FILE *fp) \{                                     \\ \ind
       fputs("Hello, world!\textbackslash n", fp);             \-\\
     \}                                                        \-\\
@@ -175,7 +175,7 @@ approach to all of this: it expects you, the programmer, to deal with it.
 
 The basic syntax for @"code" stanzas is
 \begin{prog}
-  code @<file-label> : @<section> \{                            \\ \ind
+  code @<file-label>: @<section> \{                             \\ \ind
     @<code>                                                   \-\\
   \}
 \end{prog}