summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Benkard <code@mail.matthias.benkard.de>2008-03-05 14:12:58 +0100
committerMatthias Benkard <code@mail.matthias.benkard.de>2008-03-05 14:12:58 +0100
commit3a35930787e6caf4bb126fd828221dab79d939fc (patch)
treee8074d3338bf0ef60e5520640c541ab05411dc0a
parentc9dda9d6a341d4b4e46c9148b8dcbba94e2c8b2c (diff)
Fix documentation formatting.
darcs-hash:511ea4147397dc61baabcd0ddc39c7ec01097163
-rw-r--r--Lisp/class-definition.lisp20
-rw-r--r--Lisp/reader-syntax.lisp4
2 files changed, 12 insertions, 12 deletions
diff --git a/Lisp/class-definition.lisp b/Lisp/class-definition.lisp
index 729c19a..d6cc6a9 100644
--- a/Lisp/class-definition.lisp
+++ b/Lisp/class-definition.lisp
@@ -79,7 +79,7 @@ per (4) above), the behaviour is undefined.
slot ::= (*slot-name* [[*slot-option* | *foreign-slot-option*]]\\*)
-foreign-slot-option ::= {:foreign-type *typespec*} | {:foreign-name *foreign-name*}
+foreign-slot-option ::= \\{:foreign-type *typespec*\\} | \\{:foreign-name *foreign-name*\\}
*typespec* --- a **list** or a **symbol**.
@@ -120,16 +120,16 @@ transforming it to Lower Camel Case as follows:
(foo-count :foreign-type :int))) ;foreign name will be \"fooCount\"
=> #<NS:+MLK-MY-CLASS NS:MLK-MY-CLASS {82c05c0}>
- (defvar *x* (invoke (find-objc-class 'mlk-my-class) 'new))
- => *X*
+ (defvar \\*x\\* (invoke (find-objc-class 'mlk-my-class) 'new))
+ => \\*X\\*
- (slot-boundp *x* 'foo-count) => T
- (setf (slot-value *x* 'foo-count) 100) => 100
- (slot-value *x* 'foo-count) => 100
+ (slot-boundp \\*x\\* 'foo-count) => T
+ (setf (slot-value \\*x\\* 'foo-count) 100) => 100
+ (slot-value \\*x\\* 'foo-count) => 100
- (slot-boundp *x* 'foos) => NIL
- (setf (slot-value *x* 'foos) (list 'a 'b 'c)) => (A B C)
- (slot-value *x* 'foos) => (A B C)
+ (slot-boundp \\*x\\* 'foos) => NIL
+ (setf (slot-value \\*x\\* 'foos) (list 'a 'b 'c)) => (A B C)
+ (slot-value \\*x\\* 'foos) => (A B C)
## Note:
@@ -158,7 +158,7 @@ Because of this, one has to be very careful when using _:string_ as the
## See also:
- __defclass__, __define-objective-c-generic-function,
+ __defclass__, __define-objective-c-generic-function__,
__define-objective-c-method__"
(let* ((objc-superclasses (remove-if-not
#'(lambda (c)
diff --git a/Lisp/reader-syntax.lisp b/Lisp/reader-syntax.lisp
index bbba68c..a01e5d7 100644
--- a/Lisp/reader-syntax.lisp
+++ b/Lisp/reader-syntax.lisp
@@ -47,8 +47,8 @@ time, it is a more conservative syntax enhancement than that provided by
__enable-objective-c-syntax__.
The **reader macro** transforms any **string** of alphanumeric
-characters and **character**s that are __eql__ to one of #\:, #\- and
-#\_ into a **symbol** with that **string** as the **symbol name** and
+characters and **character**s that are __eql__ to one of #\\:, #\\- and
+#\\_ into a **symbol** with that **string** as the **symbol name** and
_objective-c-selectors__ as the **symbol package**.