Skip to content

Commit 938ab2b

Browse files
author
Owen Jones
committed
Replace 'detatch' with 'detach'
1 parent 3b1f485 commit 938ab2b

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/util/reference_counting.h

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ class reference_counting
7373

7474
T &write()
7575
{
76-
detatch();
76+
detach();
7777
return *d;
7878
}
7979

@@ -92,7 +92,7 @@ class reference_counting
9292

9393
void remove_ref(dt *old_d);
9494

95-
void detatch();
95+
void detach();
9696

9797
void copy_from(const reference_counting &other)
9898
{
@@ -145,10 +145,10 @@ void reference_counting<T>::remove_ref(dt *old_d)
145145
}
146146

147147
template<class T>
148-
void reference_counting<T>::detatch()
148+
void reference_counting<T>::detach()
149149
{
150150
#ifdef REFERENCE_COUNTING_DEBUG
151-
std::cout << "DETATCH1: " << d << '\n';
151+
std::cout << "DETACH1: " << d << '\n';
152152
#endif
153153

154154
if(d==nullptr)
@@ -175,7 +175,7 @@ void reference_counting<T>::detatch()
175175
assert(d->ref_count==1);
176176

177177
#ifdef REFERENCE_COUNTING_DEBUG
178-
std::cout << "DETATCH2: " << d << '\n'
178+
std::cout << "DETACH2: " << d << '\n'
179179
#endif
180180
}
181181

0 commit comments

Comments
 (0)