Skip to content

Commit 37626de

Browse files
committed
Fix BUG source indentation in tracing examples
Add 2-space indentation inside block bodies (storage, create, code, if) to match the canonical style used in .bug example files.
1 parent dc85f25 commit 37626de

File tree

1 file changed

+20
-20
lines changed

1 file changed

+20
-20
lines changed

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

Lines changed: 20 additions & 20 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

0 commit comments

Comments
 (0)