Skip to content

Commit d29bd8c

Browse files
jensmaurertkoeppe
authored andcommitted
[fs.op.funcs] Separate effects from returns. (#1848)
1 parent e2457df commit d29bd8c

File tree

1 file changed

+13
-5
lines changed

1 file changed

+13
-5
lines changed

source/iostreams.tex

+13-5
Original file line numberDiff line numberDiff line change
@@ -14956,13 +14956,15 @@
1495614956
\end{itemdecl}
1495714957

1495814958
\begin{itemdescr}
14959+
\pnum
14960+
\effects
14961+
If \tcode{exists(p)} is \tcode{false}, an error is reported\iref{fs.err.report}.
14962+
1495914963
\pnum
1496014964
\returns
1496114965
\begin{itemize}
1496214966
\item
14963-
If \tcode{exists(p)} is \tcode{false}, an error is reported\iref{fs.err.report}.
14964-
\item
14965-
Otherwise, if \tcode{is_regular_file(p)}, the size in bytes of the file
14967+
If \tcode{is_regular_file(p)}, the size in bytes of the file
1496614968
\tcode{p} resolves to, determined as if by the value of the POSIX \tcode{stat}
1496714969
structure member \tcode{st_size} obtained as if by POSIX \tcode{stat()}.
1496814970
\item
@@ -15751,8 +15753,14 @@
1575115753

1575215754
\begin{itemdescr}
1575315755
\pnum
15754-
\returns An unspecified directory path suitable for temporary files. An error shall be reported if
15755-
\tcode{exists(p)} is \tcode{false} or \tcode{is_directory(p)} is \tcode{false}, where \tcode{p} is the path to be returned.
15756+
Let \tcode{p} be an unspecified directory path suitable for temporary files.
15757+
15758+
\pnum
15759+
\effects If \tcode{exists(p)} is \tcode{false} or \tcode{is_directory(p)} is
15760+
\tcode{false}, an error is reported\iref{fs.err.report}.
15761+
15762+
\pnum
15763+
\returns The path \tcode{p}.
1575615764
The signature with argument \tcode{ec} returns \tcode{path()} if an
1575715765
error occurs.
1575815766

0 commit comments

Comments
 (0)