Skip to content
Snippets Groups Projects
Commit ddfa53e5 authored by Theisen, Lambert's avatar Theisen, Lambert 🔥
Browse files

Fix docu

parent 54e23922
Branches
No related tags found
No related merge requests found
Pipeline #1990 passed
...@@ -19,7 +19,7 @@ In this lecture, we'll explore how to effectively document Julia code. We'll cov ...@@ -19,7 +19,7 @@ In this lecture, we'll explore how to effectively document Julia code. We'll cov
Here's a simple example of how to write a doc string in Julia: Here's a simple example of how to write a doc string in Julia:
```julia ````julia
""" """
add(x, y) add(x, y)
...@@ -39,11 +39,12 @@ Compute the sum of `x` and `y`. ...@@ -39,11 +39,12 @@ Compute the sum of `x` and `y`.
```julia ```julia
julia> add(2, 3) julia> add(2, 3)
5 5
```
""" """
function add(x::Int, y::Int) function add(x::Int, y::Int)
return x + y return x + y
end end
``` ````
This example shows how to document a function's purpose, its arguments, and provide a usage example. This example shows how to document a function's purpose, its arguments, and provide a usage example.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment