Skip to content

Commit fe5ab1a

Browse files
committed
Fixing Typo
1 parent 55bcf9f commit fe5ab1a

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

src/string19.lib/string19/Rope.join.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,13 @@
33

44
namespace string19 {
55

6-
template<class V> struct Seperator {
6+
template<class V> struct Separator {
77
V v;
88

99
template<class T, class... Ts> constexpr auto join(T t, Ts... args) { return Rope{t, Rope{v, args}...}; }
1010
constexpr auto join() { return Rope{}; }
1111
};
1212

13-
template<class V> Seperator(V) -> Seperator<V>;
13+
template<class V> Separator(V) -> Separator<V>;
1414

1515
} // namespace string19

src/string19.lib/string19/Rope.join.test.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,31 +13,31 @@
1313
using namespace string19;
1414

1515
TEST(Rope, joinEmpty) {
16-
constexpr auto rope = Seperator{','}.join();
16+
constexpr auto rope = Separator{','}.join();
1717
constexpr auto N = ropeCount(rope);
1818
constexpr auto store = ropeStore<N>(rope);
1919
static_assert(viewStore(store) == viewLiteral(""));
2020
EXPECT_EQ(store, storeLiteral(""));
2121
}
2222

2323
TEST(Rope, joinChar) {
24-
constexpr auto rope = Seperator{','}.join('1', '2', '3');
24+
constexpr auto rope = Separator{','}.join('1', '2', '3');
2525
constexpr auto N = ropeCount(rope);
2626
constexpr auto store = ropeStore<N>(rope);
2727
static_assert(viewStore(store) == viewLiteral("1,2,3"));
2828
EXPECT_EQ(store, storeLiteral("1,2,3"));
2929
}
3030

3131
TEST(Rope, joinView) {
32-
constexpr auto rope = Seperator{viewLiteral(", ")}.join(viewLiteral("1"), '2', '3');
32+
constexpr auto rope = Separator{viewLiteral(", ")}.join(viewLiteral("1"), '2', '3');
3333
constexpr auto N = ropeCount(rope);
3434
constexpr auto store = ropeStore<N>(rope);
3535
static_assert(viewStore(store) == viewLiteral("1, 2, 3"));
3636
EXPECT_EQ(store, storeLiteral("1, 2, 3"));
3737
}
3838

3939
TEST(Rope, joinDecimal) {
40-
constexpr auto rope = Seperator{viewLiteral(", ")}.join(decimal<1>, decimal<-2>, decimal<3>);
40+
constexpr auto rope = Separator{viewLiteral(", ")}.join(decimal<1>, decimal<-2>, decimal<3>);
4141
constexpr auto N = ropeCount(rope);
4242
constexpr auto store = ropeStore<N>(rope);
4343
static_assert(viewStore(store) == viewLiteral("1, -2, 3"));

0 commit comments

Comments
 (0)