Skip to content

Commit d9240b4

Browse files
committed
Revert BUG indentation to match prettier formatting
Prettier strips indentation inside template literal strings in MDX JSX props. Revert to the unindented style that prettier enforces.
1 parent a52a1f6 commit d9240b4

1 file changed

Lines changed: 26 additions & 26 deletions

File tree

packages/web/docs/core-schemas/programs/tracing.mdx

Lines changed: 26 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -53,15 +53,15 @@ This example shows a basic counter that increments a storage variable:
5353
source={`name Counter;
5454
5555
storage {
56-
[0] count: uint256;
56+
[0] count: uint256;
5757
}
5858
5959
create {
60-
count = 0;
60+
count = 0;
6161
}
6262
6363
code {
64-
count = count + 1;
64+
count = count + 1;
6565
}`}
6666
/>
6767

@@ -75,21 +75,21 @@ This example demonstrates conditional logic with storage variables:
7575
source={`name ThresholdCounter;
7676
7777
storage {
78-
[0] count: uint256;
79-
[1] threshold: uint256;
78+
[0] count: uint256;
79+
[1] threshold: uint256;
8080
}
8181
8282
create {
83-
count = 0;
84-
threshold = 5;
83+
count = 0;
84+
threshold = 5;
8585
}
8686
8787
code {
88-
count = count + 1;
88+
count = count + 1;
8989
90-
if (count >= threshold) {
91-
count = 0;
92-
}
90+
if (count >= threshold) {
91+
count = 0;
92+
}
9393
}`}
9494
/>
9595

@@ -103,21 +103,21 @@ This example shows working with multiple storage locations:
103103
source={`name MultiSlot;
104104
105105
storage {
106-
[0] a: uint256;
107-
[1] b: uint256;
108-
[2] sum: uint256;
106+
[0] a: uint256;
107+
[1] b: uint256;
108+
[2] sum: uint256;
109109
}
110110
111111
create {
112-
a = 10;
113-
b = 20;
114-
sum = 0;
112+
a = 10;
113+
b = 20;
114+
sum = 0;
115115
}
116116
117117
code {
118-
sum = a + b;
119-
a = a + 1;
120-
b = b + 1;
118+
sum = a + b;
119+
a = a + 1;
120+
b = b + 1;
121121
}`}
122122
/>
123123

@@ -137,21 +137,21 @@ trace. Watch for **invoke** contexts on the JUMP into `add` and
137137
source={`name Adder;
138138
139139
define {
140-
function add(a: uint256, b: uint256) -> uint256 {
141-
return a + b;
142-
};
140+
function add(a: uint256, b: uint256) -> uint256 {
141+
return a + b;
142+
};
143143
}
144144
145145
storage {
146-
[0] result: uint256;
146+
[0] result: uint256;
147147
}
148148
149149
create {
150-
result = 0;
150+
result = 0;
151151
}
152152
153153
code {
154-
result = add(3, 4);
154+
result = add(3, 4);
155155
}`}
156156
/>
157157

0 commit comments

Comments
 (0)