diff --git a/doc/00_optional.qbk b/doc/00_optional.qbk
index fcc308a..7cc8565 100644
--- a/doc/00_optional.qbk
+++ b/doc/00_optional.qbk
@@ -54,7 +54,7 @@ Distributed under the Boost Software License, Version 1.0.
Class template `optional` is a wrapper for representing 'optional' (or 'nullable') objects who may not (yet) contain a valid value. Optional objects offer full value semantics; they are good for passing by value and usage inside STL containers. This is a header-only library.
[heading Problem]
-Suppose we want to read a parameter form a config file which represents some integral value, let's call it `"MaxValue"`. It is possible that this parameter is not specified; such situation is no error. It is valid to not specify the parameter and in that case the program is supposed to behave slightly different. Also suppose that any possible value of type `int` is a valid value for `"MaxValue"`, so we cannot jut use `-1` to represent the absence of the parameter in the config file.
+Suppose we want to read a parameter form a config file which represents some integral value, let's call it `"MaxValue"`. It is possible that this parameter is not specified; such situation is no error. It is valid to not specify the parameter and in that case the program is supposed to behave slightly differently. Also, suppose that any possible value of type `int` is a valid value for `"MaxValue"`, so we cannot jut use `-1` to represent the absence of the parameter in the config file.
[heading Solution]
diff --git a/doc/01_quick_start.qbk b/doc/01_quick_start.qbk
index 4a94429..6bfc398 100644
--- a/doc/01_quick_start.qbk
+++ b/doc/01_quick_start.qbk
@@ -14,7 +14,7 @@
[section Optional return values]
-Let's write and use a converter function that converts an a `std::string` to an `int`. It is possible that for a given string (e.g. `"cat"`) there exist no value of type `int` capable of representing the conversion result. We do not consider such situation an error. We expect that the converter can be used only to check if the conversion is possible. A natural signature for this function can be:
+Let's write and use a converter function that converts a `std::string` to an `int`. It is possible that for a given string (e.g. `"cat"`) there exists no value of type `int` capable of representing the conversion result. We do not consider such situation an error. We expect that the converter can be used only to check if the conversion is possible. A natural signature for this function can be:
#include
- Let's write and use a converter function that converts an a std::string
+ Let's write and use a converter function that converts a std::string
to an int
. It is possible that
for a given string (e.g. "cat"
)
- there exist no value of type int
+ there exists no value of type int
capable of representing the conversion result. We do not consider such situation
an error. We expect that the converter can be used only to check if the conversion
is possible. A natural signature for this function can be:
diff --git a/doc/html/boost_optional/quick_start/optional_automatic_variables.html b/doc/html/boost_optional/quick_start/optional_automatic_variables.html
index bcf6b37..8d22f86 100644
--- a/doc/html/boost_optional/quick_start/optional_automatic_variables.html
+++ b/doc/html/boost_optional/quick_start/optional_automatic_variables.html
@@ -49,11 +49,11 @@
in an indeterminate state. Its state is always well defined. Instruction
ans =
i
initializes the optional object.
- It uses the assignment from int
.
+ It uses the 'mixed' assignment from int
.
In general, for optional<T>
,
when an assignment from T
is invoked, it can do two things. If the optional object is not initialized
- our case here), it initializes it with T
's
+ (our case here), it initializes the contained value using T
's
copy constructor. If the optional object is already initialized, it assigns
the new value to it using T
's
copy assignment.
diff --git a/doc/html/boost_optional/tutorial/relational_operators.html b/doc/html/boost_optional/tutorial/relational_operators.html
index ecb8c4f..bc97e7b 100644
--- a/doc/html/boost_optional/tutorial/relational_operators.html
+++ b/doc/html/boost_optional/tutorial/relational_operators.html
@@ -41,7 +41,7 @@
assert(oN != o0);
assert(o1 != oN);
-assert(o2 != o1);
+assert(o0 != o1);
assert(oN == oN);
assert(o0 == o0);
@@ -55,7 +55,7 @@
assert(oN != 0);
assert(o1 != boost::none);
-assert(o2 != 1);
+assert(o0 != 1);
assert(oN == boost::none);
assert(o0 == 0);
diff --git a/doc/html/index.html b/doc/html/index.html
index 9b48711..3e4f671 100644
--- a/doc/html/index.html
+++ b/doc/html/index.html
@@ -107,7 +107,7 @@
integral value, let's call it "MaxValue"
.
It is possible that this parameter is not specified; such situation is no error.
It is valid to not specify the parameter and in that case the program is supposed
- to behave slightly different. Also suppose that any possible value of type
+ to behave slightly differently. Also, suppose that any possible value of type
int
is a valid value for "MaxValue"
, so we cannot jut use -1
to represent
the absence of the parameter in the config file.
Last revised: July 10, 2014 at 11:41:49 GMT |
+Last revised: September 12, 2014 at 09:54:26 GMT |