@@ -84,12 +84,12 @@ pub enum Unit {
84
84
Nanoseconds ,
85
85
/// Tebibytes.
86
86
///
87
- /// One tebibyte is equal to 1024 gigibytes .
87
+ /// One tebibyte is equal to 1024 gibibytes .
88
88
Tebibytes ,
89
- /// Gigibytes .
89
+ /// Gibibytes .
90
90
///
91
- /// One gigibyte is equal to 1024 mebibytes.
92
- Gigibytes ,
91
+ /// One gibibyte is equal to 1024 mebibytes.
92
+ Gibibytes ,
93
93
/// Mebibytes.
94
94
///
95
95
/// One mebibyte is equal to 1024 kibibytes.
@@ -133,7 +133,7 @@ impl Unit {
133
133
Unit :: Microseconds => "microseconds" ,
134
134
Unit :: Nanoseconds => "nanoseconds" ,
135
135
Unit :: Tebibytes => "tebibytes" ,
136
- Unit :: Gigibytes => "gigibytes " ,
136
+ Unit :: Gibibytes => "gibibytes " ,
137
137
Unit :: Mebibytes => "mebibytes" ,
138
138
Unit :: Kibibytes => "kibibytes" ,
139
139
Unit :: Bytes => "bytes" ,
@@ -161,7 +161,7 @@ impl Unit {
161
161
Unit :: Microseconds => "μs" ,
162
162
Unit :: Nanoseconds => "ns" ,
163
163
Unit :: Tebibytes => "TiB" ,
164
- Unit :: Gigibytes => "GiB" ,
164
+ Unit :: Gibibytes => "GiB" ,
165
165
Unit :: Mebibytes => "MiB" ,
166
166
Unit :: Kibibytes => "KiB" ,
167
167
Unit :: Bytes => "B" ,
@@ -186,7 +186,7 @@ impl Unit {
186
186
"microseconds" => Some ( Unit :: Microseconds ) ,
187
187
"nanoseconds" => Some ( Unit :: Nanoseconds ) ,
188
188
"tebibytes" => Some ( Unit :: Tebibytes ) ,
189
- "gigibytes " => Some ( Unit :: Gigibytes ) ,
189
+ "gibibytes " => Some ( Unit :: Gibibytes ) ,
190
190
"mebibytes" => Some ( Unit :: Mebibytes ) ,
191
191
"kibibytes" => Some ( Unit :: Kibibytes ) ,
192
192
"bytes" => Some ( Unit :: Bytes ) ,
@@ -210,7 +210,7 @@ impl Unit {
210
210
matches ! (
211
211
self ,
212
212
Unit :: Tebibytes
213
- | Unit :: Gigibytes
213
+ | Unit :: Gibibytes
214
214
| Unit :: Mebibytes
215
215
| Unit :: Kibibytes
216
216
| Unit :: Bytes
@@ -294,7 +294,7 @@ mod tests {
294
294
Unit :: Microseconds ,
295
295
Unit :: Nanoseconds ,
296
296
Unit :: Tebibytes ,
297
- Unit :: Gigibytes ,
297
+ Unit :: Gibibytes ,
298
298
Unit :: Mebibytes ,
299
299
Unit :: Kibibytes ,
300
300
Unit :: Bytes ,
0 commit comments