Skip to content

Commit e97b5f5

Browse files
committed
Fix indentation errors in code blocks for #174
Note: this must be addressed at the automation level, since said code blocks were generated from a GH issue
1 parent 7380725 commit e97b5f5

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

src/coding-guidelines/expressions.rst

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -559,11 +559,11 @@ Expressions
559559
.. code-block:: rust
560560
561561
let bits : u32 = 61;
562-
let shifts = vec![-1, 4, 40];
562+
let shifts = vec![-1, 4, 40];
563563
564-
for sh in shifts {
565-
println!("{bits} << {sh} = {}", bits << sh);
566-
}
564+
for sh in shifts {
565+
println!("{bits} << {sh} = {}", bits << sh);
566+
}
567567
568568
.. compliant_example::
569569
:id: compl_ex_Ux1WqHbGKV73
@@ -588,12 +588,12 @@ Expressions
588588
.. code-block:: rust
589589
590590
let bits : u32 = 61;
591-
let shifts = vec![-1, 4, 40];
592-
593-
for sh in shifts {
594-
if 0 <= sh && sh < 32 {
595-
println!("{bits} << {sh} = {}", bits << sh);
596-
} else {
597-
println!("Performing {bits} << {sh} would be meaningless and crash-prone; we avoided it!");
598-
}
599-
}
591+
let shifts = vec![-1, 4, 40];
592+
593+
for sh in shifts {
594+
if 0 <= sh && sh < 32 {
595+
println!("{bits} << {sh} = {}", bits << sh);
596+
} else {
597+
println!("Performing {bits} << {sh} would be meaningless and crash-prone; we avoided it!");
598+
}
599+
}

0 commit comments

Comments
 (0)