Skip to content

Commit

Permalink
📖 docs: Fix max reference (#350)
Browse files Browse the repository at this point in the history
Fix `max` reference example which had a copy-paste error showing the use of
`min`.

Pull-request: #350
  • Loading branch information
juliaogris committed May 20, 2024
1 parent 95c1b14 commit d854184
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions docs/builtins.md
Original file line number Diff line number Diff line change
Expand Up @@ -1108,13 +1108,13 @@ arguments.
#### Example

```evy
print (min 3 1)
print (max 3 1)
```

Output

```evy:output
1
3
```

#### Reference
Expand Down
4 changes: 2 additions & 2 deletions frontend/docs/builtins.html
Original file line number Diff line number Diff line change
Expand Up @@ -1476,10 +1476,10 @@ <h4>Reference</h4>
<h3><a id="max" href="#max" class="anchor">#</a><code>max</code></h3>
<p><code>max</code> returns the greater of the two given numbers.</p>
<h4>Example</h4>
<pre><code class="language-evy">print (min 3 1)
<pre><code class="language-evy">print (max 3 1)
</code></pre>
<p>Output</p>
<pre><code class="language-evy-output">1
<pre><code class="language-evy-output">3
</code></pre>
<h4>Reference</h4>
<pre><code>max:num n1:num n2:num
Expand Down

0 comments on commit d854184

Please sign in to comment.