@@ -237,7 +237,7 @@ impl ScalarInt {
237237 }
238238
239239 /// Tries to convert the `ScalarInt` to an unsigned integer of the given size.
240- /// Fails if the size of the `ScalarInt` is unequal to `size` and returns the
240+ /// Fails if the size of the `ScalarInt` is not equal to `size` and returns the
241241 /// `ScalarInt`s size in that case.
242242 #[ inline]
243243 pub fn try_to_uint ( self , size : Size ) -> Result < u128 , Size > {
@@ -297,7 +297,7 @@ impl ScalarInt {
297297 }
298298
299299 /// Tries to convert the `ScalarInt` to a signed integer of the given size.
300- /// Fails if the size of the `ScalarInt` is unequal to `size` and returns the
300+ /// Fails if the size of the `ScalarInt` is not equal to `size` and returns the
301301 /// `ScalarInt`s size in that case.
302302 #[ inline]
303303 pub fn try_to_int ( self , size : Size ) -> Result < i128 , Size > {
@@ -306,35 +306,35 @@ impl ScalarInt {
306306 }
307307
308308 /// Tries to convert the `ScalarInt` to i8.
309- /// Fails if the size of the `ScalarInt` is unequal to `Size { raw: 1 }`
309+ /// Fails if the size of the `ScalarInt` is not equal to `Size { raw: 1 }`
310310 /// and returns the `ScalarInt`s size in that case.
311311 pub fn try_to_i8 ( self ) -> Result < i8 , Size > {
312312 self . try_to_int ( Size :: from_bits ( 8 ) ) . map ( |v| i8:: try_from ( v) . unwrap ( ) )
313313 }
314314
315315 /// Tries to convert the `ScalarInt` to i16.
316- /// Fails if the size of the `ScalarInt` is unequal to `Size { raw: 2 }`
316+ /// Fails if the size of the `ScalarInt` is not equal to `Size { raw: 2 }`
317317 /// and returns the `ScalarInt`s size in that case.
318318 pub fn try_to_i16 ( self ) -> Result < i16 , Size > {
319319 self . try_to_int ( Size :: from_bits ( 16 ) ) . map ( |v| i16:: try_from ( v) . unwrap ( ) )
320320 }
321321
322322 /// Tries to convert the `ScalarInt` to i32.
323- /// Fails if the size of the `ScalarInt` is unequal to `Size { raw: 4 }`
323+ /// Fails if the size of the `ScalarInt` is not equal to `Size { raw: 4 }`
324324 /// and returns the `ScalarInt`s size in that case.
325325 pub fn try_to_i32 ( self ) -> Result < i32 , Size > {
326326 self . try_to_int ( Size :: from_bits ( 32 ) ) . map ( |v| i32:: try_from ( v) . unwrap ( ) )
327327 }
328328
329329 /// Tries to convert the `ScalarInt` to i64.
330- /// Fails if the size of the `ScalarInt` is unequal to `Size { raw: 8 }`
330+ /// Fails if the size of the `ScalarInt` is not equal to `Size { raw: 8 }`
331331 /// and returns the `ScalarInt`s size in that case.
332332 pub fn try_to_i64 ( self ) -> Result < i64 , Size > {
333333 self . try_to_int ( Size :: from_bits ( 64 ) ) . map ( |v| i64:: try_from ( v) . unwrap ( ) )
334334 }
335335
336336 /// Tries to convert the `ScalarInt` to i128.
337- /// Fails if the size of the `ScalarInt` is unequal to `Size { raw: 16 }`
337+ /// Fails if the size of the `ScalarInt` is not equal to `Size { raw: 16 }`
338338 /// and returns the `ScalarInt`s size in that case.
339339 pub fn try_to_i128 ( self ) -> Result < i128 , Size > {
340340 self . try_to_int ( Size :: from_bits ( 128 ) ) . map ( |v| i128:: try_from ( v) . unwrap ( ) )
0 commit comments