Skip to content

Commit c7c0326

Browse files
committed
correct formating
1 parent f0dd162 commit c7c0326

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

docs/src/index.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,14 +67,14 @@ you want to test.
6767

6868
You can run the test suite like this:
6969

70-
```@example
70+
```Julia
7171
using GPUArrays, GPUArrays.TestSuite
7272
TestSuite.run_tests(MyGPUArrayType)
7373
```
7474
If you don't want to run the whole suite, you can also run parts of it:
7575

7676

77-
```@example
77+
```Julia
7878
Typ = JLArray
7979
GPUArrays.allowslow(false) # fail tests when slow indexing path into Array type is used.
8080

src/abstract_gpu_interface.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ end
3838
3939
Macro form of `linear_index`, which calls return when out of bounds.
4040
So it can be used like this:
41-
```
41+
```jldoctest
4242
function kernel(state, A)
4343
idx = @linear_index A state
4444
# from here on it's save to index into A with idx
@@ -61,7 +61,7 @@ end
6161
"""
6262
cartesianidx(A, statesym = :state)
6363
64-
Like `@linearidx`, but returns an N-dimensional `NTuple{ndim(A), Cuint}` as index
64+
Like [`@linearidx(A, statesym = :state)`](@ref), but returns an N-dimensional `NTuple{ndim(A), Cuint}` as index
6565
"""
6666
macro cartesianidx(A, statesym = :state)
6767
quote

0 commit comments

Comments
 (0)