Skip to content

Commit

Permalink
Update doctest
Browse files Browse the repository at this point in the history
  • Loading branch information
luraess committed Jun 7, 2022
1 parent 9bdeeab commit ffe60b1
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 12 deletions.
4 changes: 2 additions & 2 deletions slide-notebooks/l8_2-doc.jl
Original file line number Diff line number Diff line change
Expand Up @@ -91,10 +91,10 @@ One can add examples to doc-strings (they can even be part of testing: [doc-test
Transform polar to cartesian coordinates.
## Example
````jldoctest
```jldoctest
julia> transform(4.5, pi/5)
(3.6405764746872635, 2.6450336353161292)
````
```
"""
transform(r, θ) = (r*cos(θ), r*sin(θ))

Expand Down
6 changes: 3 additions & 3 deletions slide-notebooks/notebooks/l8_1-multi-xpu.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -1104,11 +1104,11 @@
"file_extension": ".jl",
"mimetype": "application/julia",
"name": "julia",
"version": "1.6.3"
"version": "1.7.2"
},
"kernelspec": {
"name": "julia-1.6",
"display_name": "Julia 1.6.3",
"name": "julia-1.7",
"display_name": "Julia 1.7.2",
"language": "julia"
}
},
Expand Down
10 changes: 5 additions & 5 deletions slide-notebooks/notebooks/l8_2-doc.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -148,10 +148,10 @@
"Transform polar to cartesian coordinates.\n",
"\n",
"# Example\n",
"````jldoctest\n",
"```jldoctest\n",
"julia> transform(4.5, pi/5)\n",
"(3.6405764746872635, 2.6450336353161292)\n",
"````\n",
"```\n",
"\"\"\"\n",
"transform(r, θ) = (r*cos(θ), r*sin(θ))"
],
Expand Down Expand Up @@ -324,11 +324,11 @@
"file_extension": ".jl",
"mimetype": "application/julia",
"name": "julia",
"version": "1.6.3"
"version": "1.7.2"
},
"kernelspec": {
"name": "julia-1.6",
"display_name": "Julia 1.6.3",
"name": "julia-1.7",
"display_name": "Julia 1.7.2",
"language": "julia"
}
},
Expand Down
4 changes: 2 additions & 2 deletions website/_literate/l8_2-doc_web.jl
Original file line number Diff line number Diff line change
Expand Up @@ -91,10 +91,10 @@ One can add examples to doc-strings (they can even be part of testing: [doc-test
Transform polar to cartesian coordinates.
## Example
````jldoctest
```jldoctest
julia> transform(4.5, pi/5)
(3.6405764746872635, 2.6450336353161292)
````
```
"""
transform(r, θ) = (r*cos(θ), r*sin(θ))

Expand Down

0 comments on commit ffe60b1

Please sign in to comment.