Skip to content

Commit

Permalink
Fix old doc.
Browse files Browse the repository at this point in the history
  • Loading branch information
smimram committed Nov 16, 2023
1 parent 6833f1e commit 76de133
Show file tree
Hide file tree
Showing 9 changed files with 36 additions and 12 deletions.
5 changes: 4 additions & 1 deletion website/content/doc-2.0.7/language.md
Original file line number Diff line number Diff line change
Expand Up @@ -650,7 +650,10 @@ for such arguments, the default value will be used. For instance, if for some
reason we tend to generally measure samples over a period of 2.5 seconds, we can
make this become the value for the `duration` parameter:

```{.liquidsoap include="liq/samplerate3.liq" from=0 to=0}
```liquidsoap
def samplerate(~samples, ~duration=2.5) =
samples / duration
end
```

In this way, if we do not specify a value for the duration, its value will
Expand Down
5 changes: 4 additions & 1 deletion website/content/doc-2.1.0/language.md
Original file line number Diff line number Diff line change
Expand Up @@ -681,7 +681,10 @@ for such arguments, the default value will be used. For instance, if for some
reason we tend to generally measure samples over a period of 2.5 seconds, we can
make this become the value for the `duration` parameter:

```{.liquidsoap include="liq/samplerate3.liq" from=0 to=0}
```liquidsoap
def samplerate(~samples, ~duration=2.5) =
samples / duration
end
```

In this way, if we do not specify a value for the duration, its value will
Expand Down
5 changes: 4 additions & 1 deletion website/content/doc-2.1.1/language.md
Original file line number Diff line number Diff line change
Expand Up @@ -681,7 +681,10 @@ for such arguments, the default value will be used. For instance, if for some
reason we tend to generally measure samples over a period of 2.5 seconds, we can
make this become the value for the `duration` parameter:

```{.liquidsoap include="liq/samplerate3.liq" from=0 to=0}
```liquidsoap
def samplerate(~samples, ~duration=2.5) =
samples / duration
end
```

In this way, if we do not specify a value for the duration, its value will
Expand Down
5 changes: 4 additions & 1 deletion website/content/doc-2.1.2/language.md
Original file line number Diff line number Diff line change
Expand Up @@ -681,7 +681,10 @@ for such arguments, the default value will be used. For instance, if for some
reason we tend to generally measure samples over a period of 2.5 seconds, we can
make this become the value for the `duration` parameter:

```{.liquidsoap include="liq/samplerate3.liq" from=0 to=0}
```liquidsoap
def samplerate(~samples, ~duration=2.5) =
samples / duration
end
```

In this way, if we do not specify a value for the duration, its value will
Expand Down
5 changes: 4 additions & 1 deletion website/content/doc-2.1.3/language.md
Original file line number Diff line number Diff line change
Expand Up @@ -681,7 +681,10 @@ for such arguments, the default value will be used. For instance, if for some
reason we tend to generally measure samples over a period of 2.5 seconds, we can
make this become the value for the `duration` parameter:

```{.liquidsoap include="liq/samplerate3.liq" from=0 to=0}
```liquidsoap
def samplerate(~samples, ~duration=2.5) =
samples / duration
end
```

In this way, if we do not specify a value for the duration, its value will
Expand Down
5 changes: 4 additions & 1 deletion website/content/doc-2.1.4/language.md
Original file line number Diff line number Diff line change
Expand Up @@ -681,7 +681,10 @@ for such arguments, the default value will be used. For instance, if for some
reason we tend to generally measure samples over a period of 2.5 seconds, we can
make this become the value for the `duration` parameter:

```{.liquidsoap include="liq/samplerate3.liq" from=0 to=0}
```liquidsoap
def samplerate(~samples, ~duration=2.5) =
samples / duration
end
```

In this way, if we do not specify a value for the duration, its value will
Expand Down
6 changes: 4 additions & 2 deletions website/content/doc-2.2.0/language.md
Original file line number Diff line number Diff line change
Expand Up @@ -699,8 +699,10 @@ for such arguments, the default value will be used. For instance, if for some
reason we tend to generally measure samples over a period of 2.5 seconds, we can
make this become the value for the `duration` parameter:

```{.liquidsoap include="liq/samplerate3.liq" from=0 to=0}
```liquidsoap
def samplerate(~samples, ~duration=2.5) =
samples / duration
end
```

In this way, if we do not specify a value for the duration, its value will
Expand Down
6 changes: 4 additions & 2 deletions website/content/doc-2.2.1/language.md
Original file line number Diff line number Diff line change
Expand Up @@ -699,8 +699,10 @@ for such arguments, the default value will be used. For instance, if for some
reason we tend to generally measure samples over a period of 2.5 seconds, we can
make this become the value for the `duration` parameter:

```{.liquidsoap include="liq/samplerate3.liq" from=0 to=0}
```liquidsoap
def samplerate(~samples, ~duration=2.5) =
samples / duration
end
```

In this way, if we do not specify a value for the duration, its value will
Expand Down
6 changes: 4 additions & 2 deletions website/content/doc-2.2.2/language.md
Original file line number Diff line number Diff line change
Expand Up @@ -699,8 +699,10 @@ for such arguments, the default value will be used. For instance, if for some
reason we tend to generally measure samples over a period of 2.5 seconds, we can
make this become the value for the `duration` parameter:

```{.liquidsoap include="liq/samplerate3.liq" from=0 to=0}
```liquidsoap
def samplerate(~samples, ~duration=2.5) =
samples / duration
end
```

In this way, if we do not specify a value for the duration, its value will
Expand Down

0 comments on commit 76de133

Please sign in to comment.