From 818deb3615d8f6e0e73f9e2369d0d21f21f20d84 Mon Sep 17 00:00:00 2001 From: Sebastian Wilzbach Date: Fri, 30 Jun 2017 01:32:33 +0200 Subject: [PATCH] Fix DDoc macros --- .../allocator/building_blocks/segregator.d | 2 +- std/net/curl.d | 2 +- std/regex/package.d | 2 +- std/stdio.d | 10 +++++----- std/string.d | 4 ++-- std/typecons.d | 4 ++-- 6 files changed, 12 insertions(+), 12 deletions(-) diff --git a/std/experimental/allocator/building_blocks/segregator.d b/std/experimental/allocator/building_blocks/segregator.d index 83520117935..76ca6f409d0 100644 --- a/std/experimental/allocator/building_blocks/segregator.d +++ b/std/experimental/allocator/building_blocks/segregator.d @@ -50,7 +50,7 @@ struct Segregator(size_t threshold, SmallAllocator, LargeAllocator) /** This method is defined only if at least one of the allocators defines it. If $(D SmallAllocator) defines $(D expand) and $(D b.length + - delta <= threshold), the call is forwarded to $(D SmallAllocator). If $( + delta <= threshold), the call is forwarded to $(D SmallAllocator). If $(D LargeAllocator) defines $(D expand) and $(D b.length > threshold), the call is forwarded to $(D LargeAllocator). Otherwise, the call returns $(D false). diff --git a/std/net/curl.d b/std/net/curl.d index 6740ecfd86b..d36ee30b5dd 100644 --- a/std/net/curl.d +++ b/std/net/curl.d @@ -2377,7 +2377,7 @@ private bool decodeLineInto(Terminator, Char = char)(ref const(ubyte)[] basesrc, * http.perform(); * --- * - * See_Also: $(HTTP www.ietf.org/rfc/rfc2616.txt, RFC2616) + * See_Also: $(_HTTP www.ietf.org/rfc/rfc2616.txt, RFC2616) * */ struct HTTP diff --git a/std/regex/package.d b/std/regex/package.d index 9e66f7eacf4..f21d9f2e0d6 100644 --- a/std/regex/package.d +++ b/std/regex/package.d @@ -79,7 +79,7 @@ $(TR $(TD Objects) $(TD assert(m.front[1] == "12"); ... - // The result of the $(D matchAll/matchFirst) is directly testable with if/assert/while. + // The result of the `matchAll/matchFirst` is directly testable with if/assert/while. // e.g. test if a string consists of letters: assert(matchFirst("Letter", `^\p{L}+$`)); --- diff --git a/std/stdio.d b/std/stdio.d index 1464445fd7f..5f8df7bb939 100644 --- a/std/stdio.d +++ b/std/stdio.d @@ -337,7 +337,7 @@ void main(string[] args) } f.writeln("!"); // f exits scope, reference count falls to zero, - // underlying $(D FILE*) is closed. + // underlying `FILE*` is closed. } ---- $(CONSOLE @@ -1519,7 +1519,7 @@ Throws: Example: --- -// Reads $(D stdin) and writes it to $(D stdout). +// Reads `stdin` and writes it to `stdout`. import std.stdio; void main() @@ -1603,9 +1603,9 @@ conversion error. Example: --- -// Read lines from $(D stdin) into a string +// Read lines from `stdin` into a string // Ignore lines starting with '#' -// Write the string to $(D stdout) +// Write the string to `stdout` void main() { @@ -1635,7 +1635,7 @@ largest buffer returned by $(D readln): Example: --- -// Read lines from $(D stdin) and count words +// Read lines from `stdin` and count words void main() { diff --git a/std/string.d b/std/string.d index 2635a78f521..f4dff356e06 100644 --- a/std/string.d +++ b/std/string.d @@ -2744,8 +2744,8 @@ if ((hasSlicing!Range && hasLength!Range && isSomeChar!(ElementType!Range) || string s = "Hello\nmy\rname\nis"; - /* notice the call to $(D array) to turn the lazy range created by - lineSplitter comparable to the $(D string[]) created by splitLines. + /* notice the call to `array` to turn the lazy range created by + lineSplitter comparable to the `string[]` created by splitLines. */ assert(lineSplitter(s).array == splitLines(s)); } diff --git a/std/typecons.d b/std/typecons.d index ac94ece139e..d4838d810dc 100644 --- a/std/typecons.d +++ b/std/typecons.d @@ -5414,7 +5414,7 @@ assert(refCountedStore.isInitialized)). /// pure @system nothrow @nogc unittest { - // A pair of an $(D int) and a $(D size_t) - the latter being the + // A pair of an `int` and a `size_t` - the latter being the // reference count - will be dynamically allocated auto rc1 = RefCounted!int(5); assert(rc1 == 5); @@ -7328,7 +7328,7 @@ public: BitFlags!Enum flags1; assert(!(flags1 & (Enum.A | Enum.B | Enum.C))); - // You need to specify the $(D unsafe) parameter for enum with custom values + // You need to specify the `unsafe` parameter for enum with custom values enum UnsafeEnum { A,