Minor documentation corrections

This commit is contained in:
Peter Dimov
2021-09-18 16:57:21 +03:00
parent 360effcf1d
commit 361834e49c

View File

@@ -725,7 +725,7 @@ constexpr void assign( int val, const error_category & cat ) noexcept;
[none] [none]
* {blank} * {blank}
+ +
Effects: :: `*this = error_code( val, cat );`. Effects: :: `*this = error_code( val, cat )`.
``` ```
void assign( int val, const error_category & cat, void assign( int val, const error_category & cat,
@@ -734,7 +734,7 @@ void assign( int val, const error_category & cat,
[none] [none]
* {blank} * {blank}
+ +
Effects: :: `*this = error_code( val, cat, loc );`. Effects: :: `*this = error_code( val, cat, loc )`.
``` ```
template<typename ErrorCodeEnum> template<typename ErrorCodeEnum>
@@ -753,7 +753,7 @@ constexpr void clear() noexcept;
* {blank} * {blank}
+ +
Effects: :: Effects: ::
`*this = error_code();`. `*this = error_code()`.
#### Observers #### Observers
@@ -1700,8 +1700,8 @@ template<class Ch, class Tr, class T, class E>
* {blank} * {blank}
+ +
Effects: :: Effects: ::
- If `*this` holds a value `t`, `os << "value:" << t;`. - If `*this` holds a value `t`, `os << "value:" << t`.
- If `*this` holds an error `e`, `os << "error:" << e;`. - If `*this` holds an error `e`, `os << "error:" << e`.
Returns: :: Returns: ::
`os`. `os`.
@@ -1943,8 +1943,8 @@ template<class Ch, class Tr, class E>
* {blank} * {blank}
+ +
Effects: :: Effects: ::
- If `*this` holds a value, `os << "value:void";`. - If `*this` holds a value, `os << "value:void"`.
- If `*this` holds an error `e`, `os << "error:" << e;`. - If `*this` holds an error `e`, `os << "error:" << e`.
Returns: :: Returns: ::
`os`. `os`.