Skip to content

Commit cc53271

Browse files
nnethercoteLegNeato
authored andcommitted
Use 4-space indents consistently.
This file currently uses a mix of 2-space and 4-space indents in examples.
1 parent 43bea35 commit cc53271

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

guide/src/guide/kernel_abi.md

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -52,31 +52,31 @@ by reference (by allocating a device box):
5252

5353
```rs
5454
let foo = Foo {
55-
a: 5,
56-
b: 6,
57-
c: 7
55+
a: 5,
56+
b: 6,
57+
c: 7
5858
};
5959

6060
unsafe {
61-
launch!(
62-
module.kernel<<<1, 1, 0, stream>>>(foo)
63-
)?;
61+
launch!(
62+
module.kernel<<<1, 1, 0, stream>>>(foo)
63+
)?;
6464
}
6565
```
6666

6767
And not
6868

6969
```rs
7070
let foo = DeviceBox::new(Foo {
71-
a: 5,
72-
b: 6,
73-
c: 7
71+
a: 5,
72+
b: 6,
73+
c: 7
7474
});
7575

7676
unsafe {
77-
launch!(
78-
module.kernel<<<1, 1, 0, stream>>>(foo.as_device_ptr())
79-
)?;
77+
launch!(
78+
module.kernel<<<1, 1, 0, stream>>>(foo.as_device_ptr())
79+
)?;
8080
}
8181
```
8282

0 commit comments

Comments
 (0)