Skip to content

Commit 11c4946

Browse files
authored
Fix Julia prompt in Readme (#278)
* Fix Julia prompt in Readme minor fix to include the julia prompt in one example * Make table of badges more compact Change from a single-line to a multiline table
1 parent a75e3e3 commit 11c4946

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

README.md

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
# OffsetArrays.jl
22

3-
| Documentation (stable) | Documentation (dev) | Unit Tests | Code coverage | PkgEval |
4-
| :-: | :-: | :-: | :-: | :-: |
5-
| [![][docs-stable-img]][docs-stable-url] | [![][docs-dev-img]][docs-dev-url] | [![][action-img]][action-url] | [![][codecov-img]][codecov-url] | [![][pkgeval-img]][pkgeval-url] |
3+
| Documentation | Build Status | Code coverage |
4+
| :-: | :-: | :-: |
5+
| [![][docs-stable-img]][docs-stable-url] | [![][action-img]][action-url] | [![][codecov-img]][codecov-url] |
6+
| [![][docs-dev-img]][docs-dev-url] | [![][pkgeval-img]][pkgeval-url] | |
67

78
## Introduction
89

@@ -28,7 +29,8 @@ where you want `OA` to have axes `(axis1, axis2, ...)` and be indexed by values
2829
fall within these axis ranges. Example:
2930

3031
```julia
31-
using OffsetArrays
32+
julia> using OffsetArrays
33+
3234
julia> A = Float64.(reshape(1:15, 3, 5))
3335
3×5 Matrix{Float64}:
3436
1.0 4.0 7.0 10.0 13.0
@@ -44,10 +46,10 @@ julia> OA = OffsetArray(A, -1:1, 0:4) # OA will have the axes (-1:1, 0:4)
4446
2.0 5.0 8.0 11.0 14.0
4547
3.0 6.0 9.0 12.0 15.0
4648

47-
julia> OA[-1,0]
49+
julia> OA[-1, 0]
4850
1.0
4951

50-
julia> OA[1,4]
52+
julia> OA[1, 4]
5153
15.0
5254
```
5355

0 commit comments

Comments
 (0)