Skip to content

Commit 16286c0

Browse files
committed
DDoc tweaks and fixes
1 parent 176976a commit 16286c0

File tree

7 files changed

+16
-16
lines changed

7 files changed

+16
-16
lines changed

changelog.dd

+1-1
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ $(VERSION 060, ddd mm, 2012, =================================================,
110110
$(LI $(BUGZILLA 4629): BufferedFile.printf() wants char[] as first argument)
111111
$(LI $(BUGZILLA 4695): std.range.zip is broken)
112112
$(LI $(BUGZILLA 4744): std.conv: string->enum doesn't look for longer match)
113-
$(LI $(BUGZILLA 4822): Problem with std.stdio.File.writef("%c")
113+
$(LI $(BUGZILLA 4822): Problem with std.stdio.File.writef("%c"))
114114
$(LI $(BUGZILLA 5011): std.container: SList linearRemove produces wrong results)
115115
$(LI $(BUGZILLA 5089): feqrel does not compile for floats)
116116
$(LI $(BUGZILLA 5260): std.math.feqrel() returns negative number)

std/algorithm.d

+1-1
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ until a specific value is found.)
146146
$(LEADINGROW Comparison
147147
)
148148
$(TR $(TDNW $(LREF cmp)) $(TD $(D cmp("abc", "abcd")) is $(D
149-
-1), $(D cmp("abc", aba")) is $(D 1), and $(D cmp("abc", "abc")) is
149+
-1), $(D cmp("abc", "aba")) is $(D 1), and $(D cmp("abc", "abc")) is
150150
$(D 0).)
151151
)
152152
$(TR $(TDNW $(LREF equal)) $(TD Compares ranges for

std/file.d

+3-3
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
Utilities for manipulating files and scanning directories. Functions
55
in this module handle files as a unit, e.g., read or write one _file
66
at a time. For opening files and manipulating them via handles refer
7-
to module $(D $(LINK2 std_stdio.html,std.stdio)).
7+
to module $(LINK2 std_stdio.html,$(D std.stdio)).
88
99
Macros:
1010
WIKI = Phobos/StdFile
@@ -2904,7 +2904,7 @@ unittest
29042904
Returns the path to a directory for temporary files.
29052905
29062906
On Windows, this function returns the result of calling the Windows API function
2907-
$(D $(LINK2 http://msdn.microsoft.com/en-us/library/windows/desktop/aa364992.aspx, GetTempPath)).
2907+
$(LINK2 http://msdn.microsoft.com/en-us/library/windows/desktop/aa364992.aspx, $(D GetTempPath)).
29082908
29092909
On POSIX platforms, it searches through the following list of directories
29102910
and returns the first one which is found to exist:
@@ -2927,7 +2927,7 @@ environment variables and directory structures have changed in the
29272927
meantime.
29282928
29292929
The POSIX $(D tempDir) algorithm is inspired by Python's
2930-
$(D $(LINK2 http://docs.python.org/library/tempfile.html#tempfile.tempdir, tempfile.tempdir)).
2930+
$(LINK2 http://docs.python.org/library/tempfile.html#tempfile.tempdir, $(D tempfile.tempdir)).
29312931
*/
29322932
string tempDir()
29332933
{

std/format.d

+1-1
Original file line numberDiff line numberDiff line change
@@ -2280,7 +2280,7 @@ if (!is(StringTypeOf!T) && !is(CharTypeOf!T) || is(T == enum))
22802280
}
22812281

22822282
/**
2283-
Associative arrays are formatted by using $(D ':') and $(D ', ') as
2283+
Associative arrays are formatted by using $(D ':') and $(D ", ") as
22842284
separators, and enclosed by $(D '[') and $(D ']').
22852285
*/
22862286
void formatValue(Writer, T, Char)(Writer w, T obj, ref FormatSpec!Char f)

std/path.d

+7-7
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
To differentiate between these cases, use $(XREF file,isDir) and
1414
$(XREF file,exists).
1515
16-
Note that on Windows, both the backslash ($(D '\')) and the slash ($(D '/'))
16+
Note that on Windows, both the backslash ($(D `\`)) and the slash ($(D `/`))
1717
are in principle valid directory separators. This module treats them
1818
both on equal footing, but in cases where a $(I new) separator is
1919
added, a backslash will be used. Furthermore, the $(LREF buildNormalizedPath)
@@ -91,8 +91,8 @@ else static assert (0, "unsupported platform");
9191

9292
/** Determines whether the given character is a directory separator.
9393
94-
On Windows, this includes both $(D '\') and $(D '/').
95-
On POSIX, it's just $(D '/').
94+
On Windows, this includes both $(D `\`) and $(D `/`).
95+
On POSIX, it's just $(D `/`).
9696
*/
9797
bool isDirSeparator(dchar c) @safe pure nothrow
9898
{
@@ -1703,7 +1703,7 @@ unittest
17031703
---
17041704
17051705
On Windows, an absolute path starts at the root directory of
1706-
a specific drive. Hence, it must start with $(D "d:\") or $(D "d:/"),
1706+
a specific drive. Hence, it must start with $(D `d:\`) or $(D `d:/`),
17071707
where $(D d) is the drive letter. Alternatively, it may be a
17081708
network path, i.e. a path starting with a double (back)slash.
17091709
---
@@ -1834,14 +1834,14 @@ unittest
18341834
taken to be the current working directory. If specified,
18351835
$(D base) must be an absolute _path, and it is always assumed
18361836
to refer to a directory. If $(D path) and $(D base) refer to
1837-
the same directory, the function returns $(D ".").
1837+
the same directory, the function returns $(D `.`).
18381838
18391839
The following algorithm is used:
18401840
$(OL
18411841
$(LI If $(D path) is a relative directory, return it unaltered.)
18421842
$(LI Find a common root between $(D path) and $(D base).
18431843
If there is no common root, return $(D path) unaltered.)
1844-
$(LI Prepare a string with as many $(D "../") or $(D "..\") as
1844+
$(LI Prepare a string with as many $(D `../`) or $(D `..\`) as
18451845
necessary to reach the common root from base path.)
18461846
$(LI Append the remaining segments of $(D path) to the string
18471847
and return.)
@@ -1975,7 +1975,7 @@ unittest
19751975
which, if not specified, is given by
19761976
$(LREF CaseSensitive)$(D .osDefault).
19771977
1978-
On Windows, the backslash and slash characters ($(D '\') and $(D '/'))
1978+
On Windows, the backslash and slash characters ($(D `\`) and $(D `/`))
19791979
are considered equal.
19801980
19811981
Examples:

std/range.d

+2-2
Original file line numberDiff line numberDiff line change
@@ -233,8 +233,8 @@ $(BOOKTABLE ,
233233
234234
Ranges whose elements are sorted afford better efficiency with certain
235235
operations. For this, the $(D $(LREF assumeSorted)) function can be used to
236-
construct a $(D $(LREF SortedRange)) from a pre-sorted _range. The $(D $(LINK2
237-
std_algorithm.html#sort, std.algorithm.sort)) function also conveniently
236+
construct a $(D $(LREF SortedRange)) from a pre-sorted _range. The $(LINK2
237+
std_algorithm.html#sort, $(D std.algorithm.sort)) function also conveniently
238238
returns a $(D SortedRange). $(D SortedRange) objects provide some additional
239239
_range operations that take advantage of the fact that the _range is sorted.
240240

std/string.d

+1-1
Original file line numberDiff line numberDiff line change
@@ -2982,7 +2982,7 @@ unittest
29822982
$(D to).
29832983
29842984
Both $(D from) and $(D to) may contain ranges using the $(D '-') character
2985-
(e.g. $(D "a-d") is synonymous with $(D "abcd).) Neither accept a leading
2985+
(e.g. $(D "a-d") is synonymous with $(D "abcd").) Neither accept a leading
29862986
$(D '^') as meaning the complement of the string (use the $(D 'c') modifier
29872987
for that).
29882988
+/

0 commit comments

Comments
 (0)