summaryrefslogtreecommitdiffstats
path: root/indexlib/bitio.h
diff options
context:
space:
mode:
Diffstat (limited to 'indexlib/bitio.h')
-rw-r--r--indexlib/bitio.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/indexlib/bitio.h b/indexlib/bitio.h
index 40f4ef7d..913f44ea 100644
--- a/indexlib/bitio.h
+++ b/indexlib/bitio.h
@@ -50,11 +50,11 @@ namespace byte_io {
T read( const unsigned char* );
template<typename T>
- struct byte_lenght_struct { };
+ struct byte_length_struct { };
template<typename T>
- struct byte_lenght_struct<const T> {
- static const int value = byte_lenght_struct<T>::value;
+ struct byte_length_struct<const T> {
+ static const int value = byte_length_struct<T>::value;
};
@@ -63,8 +63,8 @@ namespace byte_io {
* for supported types.
*/
template<typename T>
- unsigned byte_lenght() {
- return byte_lenght_struct<T>::value;
+ unsigned byte_length() {
+ return byte_length_struct<T>::value;
}
}