Merge pull request #56 from AMDmi3/patch-1

Fix typo
This commit is contained in:
Gabriel Dos Reis 2015-09-21 16:39:43 -07:00
commit 41b5f36e77

View File

@ -4535,7 +4535,7 @@ If a `swap` tries to exit with an exception, it's a bad design error and the pro
// ... // ...
}; };
`B`'s comparison accpts conversions for its second operand, but not its first. `B`'s comparison accepts conversions for its second operand, but not its first.
**Note**: If a class has a failure state, like `double`'s `NaN`, there is a temptation to make a comparison against the failure state throw. **Note**: If a class has a failure state, like `double`'s `NaN`, there is a temptation to make a comparison against the failure state throw.
The alternative is to make two failure states compare equal and any valid state compare false against the failure state. The alternative is to make two failure states compare equal and any valid state compare false against the failure state.