Update docs with powers-of-two

This commit is contained in:
Caleb Zulawski 2021-01-24 00:17:40 -05:00
parent f39f1a4ad9
commit a4bab7c6fa
3 changed files with 5 additions and 5 deletions

View file

@ -11,7 +11,7 @@ This will cause an error:
#![feature(repr_simd)]
#[repr(simd)]
struct Bad<T>(T, T, T);
struct Bad<T>(T, T, T, T);
```
This will not:
@ -20,5 +20,5 @@ This will not:
#![feature(repr_simd)]
#[repr(simd)]
struct Good(u32, u32, u32);
struct Good(u32, u32, u32, u32);
```

View file

@ -7,7 +7,7 @@ Erroneous code example:
#![feature(repr_simd)]
#[repr(simd)]
struct Bad(u16, u32, u32); // error!
struct Bad(u16, u32, u32 u32); // error!
```
When using the `#[simd]` attribute to automatically use SIMD operations in tuple
@ -20,5 +20,5 @@ Fixed example:
#![feature(repr_simd)]
#[repr(simd)]
struct Good(u32, u32, u32); // ok!
struct Good(u32, u32, u32, u32); // ok!
```

View file

@ -19,5 +19,5 @@ Fixed example:
#![feature(repr_simd)]
#[repr(simd)]
struct Good(u32, u32, u32); // ok!
struct Good(u32, u32, u32, u32); // ok!
```