Skip to content

Commit

Permalink
Fix several typos (#4, thanks @striezel)
Browse files Browse the repository at this point in the history
  • Loading branch information
striezel authored Nov 30, 2022
1 parent 1d72871 commit 46437cc
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -152,10 +152,10 @@ The version of *bit lite* is available via tag `[.version]`. The following tags
### A.2 Bit lite test specification

```Text
bit_cast<>(): succesfully roundtrips uint64_t via double [bit.cast]
bit_cast<>(): successfully roundtrips uint64_t via double [bit.cast]
has_single_bit(): single bit yields false for no bits set [bit.pow.two]
has_single_bit(): single bit yields true for single bits set [bit.pow.two]
has_single_bit(): single bit yields false for mutiple bits set [bit.pow.two]
has_single_bit(): single bit yields false for multiple bits set [bit.pow.two]
bit_ceil(): let N be the smallest power of 2 greater than or equal to x [bit.pow.two]
bit_floor(): x == 0, 0; otherwise the maximal value y such that has_single_bit(y) is true and y <= x [bit.pow.two]
bit_width: x == 0, 0; otherwise one plus the base-2 logarithm of x, with any fractional part discarded [bit.pow.two]
Expand Down
2 changes: 1 addition & 1 deletion example/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ else()
message( STATUS "Matched: nothing")
endif()

# Function to emulate ternary operaton `result = b ? x : y`:
# Function to emulate ternary operation `result = b ? x : y`:

macro( ternary var boolean value1 value2 )
if( ${boolean} )
Expand Down
6 changes: 3 additions & 3 deletions include/nonstd/bit.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ namespace nonstd
# define bit_ENABLE_IF_R_(R, VA) R
#endif

// Method enabling (funtion template argument):
// Method enabling (function template argument):

#if bit_HAVE( TYPE_TRAITS ) && bit_HAVE( DEFAULT_FUNCTION_TEMPLATE_ARG )
// VS 2013 seems to have trouble with SFINAE for default non-type arguments:
Expand Down Expand Up @@ -332,7 +332,7 @@ typedef integral_constant< bool, false > false_type;
template< class T, class U > struct is_same : std11::true_type{};
#endif

} // namepsace std11
} // namespace std11

// C++20 emulation:

Expand All @@ -341,7 +341,7 @@ namespace std20 {
template< class T, class U >
struct same_as : std11::integral_constant<bool, std11::is_same<T,U>::value && std11::is_same<U,T>::value> {};

} // namepsace std20
} // namespace std20

//
// For reference:
Expand Down
4 changes: 2 additions & 2 deletions test/bit.t.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ using namespace nonstd;

#define no_constexpr /*constexpr*/

CASE( "bit_cast<>(): succesfully roundtrips uint64_t via double" " [bit.cast]" )
CASE( "bit_cast<>(): successfully roundtrips uint64_t via double" " [bit.cast]" )
{
const uint64_t v = 0x3fe9000000000000ull;

Expand All @@ -97,7 +97,7 @@ CASE( "has_single_bit(): single bit yields true for single bits set" " [bit.pow.
}
}

CASE( "has_single_bit(): single bit yields false for mutiple bits set" " [bit.pow.two]" )
CASE( "has_single_bit(): single bit yields false for multiple bits set" " [bit.pow.two]" )
{
typedef unsigned long type;
const int N = CHAR_BIT * sizeof(type);
Expand Down

0 comments on commit 46437cc

Please sign in to comment.