dlang.org
dlang.org copied to clipboard
HTML tags visible in code examples on `std.algorithm.mutation.remove` page
Liam M reported this on 2024-10-22T03:27:39Z
Transferred from https://issues.dlang.org/show_bug.cgi?id=24826
CC List
- Nick Treleaven (@ntrel)
Description
Created attachment 1921
The page in question at the time of this bug report.
It's an issue with this page here:
https://dlang.org/library/std/algorithm/mutation/remove.html
A code example on this page shows the following:
```
import std.algorithm.mutation;
string[] a = [ "a"
</div>
Note that <code class="lang-d"><span class="pln">remove</span></code> does not change the length of the original range directly;
instead, it returns the shortened range. If its return value is not assigned to
the original range, the original range will retain its original length, though
its contents will have changed:
<div class="runnable-examples">
```
This code is supposed to be runnable, but clicking on "Run" will of course result in errors.
More examples further down the page also have this issue.
!!!There are attachements in the bugzilla issue that have not been copied over!!!