syntax: fix SINGLETON: to be on its own line in docs.
parent
e0d1b14e5c
commit
948b1a650a
|
@ -467,7 +467,7 @@ HELP: SINGLETON:
|
||||||
"Defines a new singleton class. The class word itself is the sole instance of the singleton class."
|
"Defines a new singleton class. The class word itself is the sole instance of the singleton class."
|
||||||
}
|
}
|
||||||
{ $examples
|
{ $examples
|
||||||
{ $example "USING: classes.singleton kernel io ;" "IN: singleton-demo" "USE: prettyprint SINGLETON: foo\nGENERIC: bar ( obj -- )\nM: foo bar drop \"a foo!\" print ;\nfoo bar" "a foo!" }
|
{ $example "USING: classes.singleton kernel io ;" "IN: singleton-demo" "USE: prettyprint\nSINGLETON: foo\nGENERIC: bar ( obj -- )\nM: foo bar drop \"a foo!\" print ;\nfoo bar" "a foo!" }
|
||||||
} ;
|
} ;
|
||||||
|
|
||||||
HELP: SINGLETONS:
|
HELP: SINGLETONS:
|
||||||
|
|
Loading…
Reference in New Issue