[Issue 24826] New: HTML tags visible in code examples on `std.algorithm.mutation.remove` page

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Oct 22 03:27:39 UTC 2024


https://issues.dlang.org/show_bug.cgi?id=24826

          Issue ID: 24826
           Summary: HTML tags visible in code examples on
                    `std.algorithm.mutation.remove` page
           Product: D
           Version: D2
          Hardware: All
               URL: http://dlang.org/library/std/algorithm/mutation.html
                OS: All
            Status: NEW
          Severity: normal
          Priority: P3
         Component: dlang.org
          Assignee: nobody at puremagic.com
          Reporter: liammcgillivray32 at gmail.com

Created attachment 1921
  --> https://issues.dlang.org/attachment.cgi?id=1921&action=edit
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.

--


More information about the Digitalmars-d-bugs mailing list