File tree Expand file tree Collapse file tree 3 files changed +12
-12
lines changed Expand file tree Collapse file tree 3 files changed +12
-12
lines changed Original file line number Diff line number Diff line change @@ -10,10 +10,10 @@ impl ToDoc for UsageDoc {
10
10
fn to_doc ( n : & Self :: N , _: & super :: Settings ) -> String {
11
11
let mut doc = String :: new ( ) ;
12
12
doc. push_str ( & description ( "Usage: ~" ) ) ;
13
- doc. push_str ( " > \n " ) ;
13
+ doc. push_str ( ">lua \n " ) ;
14
14
doc. push_str ( & textwrap:: indent ( & n. code , " " ) ) ;
15
15
doc. push ( '\n' ) ;
16
- doc. push_str ( " <\n \n " ) ;
16
+ doc. push_str ( "<\n \n " ) ;
17
17
doc
18
18
}
19
19
}
Original file line number Diff line number Diff line change @@ -260,9 +260,9 @@ U.sub({this}, {that}) *U.sub*
260
260
we don't know about
261
261
262
262
Usage: ~
263
- >
263
+ >lua
264
264
require('module.U').sub(10, 5)
265
- <
265
+ <
266
266
267
267
268
268
U.magical({this}, {that}) *U.magical*
@@ -469,12 +469,12 @@ U:create() *U:create*
469
469
(Human)
470
470
471
471
Usage: ~
472
- >
472
+ >lua
473
473
local H = require('Human')
474
474
local human = H:create()
475
475
476
476
print(getmetatable(human))
477
- <
477
+ <
478
478
479
479
480
480
================================================================================
@@ -614,9 +614,9 @@ U.VMODE *U.VMODE*
614
614
(VMode)
615
615
616
616
Usage: ~
617
- >
617
+ >lua
618
618
print(require('plugin').VMODE)
619
- <
619
+ <
620
620
621
621
622
622
"#
Original file line number Diff line number Diff line change @@ -68,9 +68,9 @@ U:create() *U:create*
68
68
(number)
69
69
70
70
Usage: ~
71
- >
71
+ >lua
72
72
require('Pi'):create()
73
- <
73
+ <
74
74
75
75
76
76
"
@@ -126,9 +126,9 @@ U:create() *awesome:create*
126
126
(number)
127
127
128
128
Usage: ~
129
- >
129
+ >lua
130
130
require('Pi'):create()
131
- <
131
+ <
132
132
133
133
134
134
"
You can’t perform that action at this time.
0 commit comments