Skip to content

Commit 88adf77

Browse files
committed
Fix typos near the refactor
1 parent 9620eae commit 88adf77

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

library/stdarch/crates/stdarch-gen-arm/src/intrinsic.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -550,7 +550,7 @@ impl LLVMLink {
550550

551551
/// Alters all the unsigned types from the signature. This is required where
552552
/// a signed and unsigned variant require the same binding to an exposed
553-
/// LLVM instrinsic.
553+
/// LLVM intrinsic.
554554
pub fn sanitise_uints(&mut self) {
555555
let transform = |tk: &mut TypeKind| {
556556
if let Some(BaseType::Sized(BaseTypeKind::UInt, size)) = tk.base_type() {
@@ -1139,7 +1139,7 @@ impl Intrinsic {
11391139
} else {
11401140
/* If we do not need to reorder anything then immediately add
11411141
* the expressions from the big_endian_expressions and
1142-
* concatinate the compose vector */
1142+
* concatenate the compose vector */
11431143
variant.big_endian_compose.extend(big_endian_expressions);
11441144
variant
11451145
.big_endian_compose
@@ -1157,11 +1157,11 @@ impl Intrinsic {
11571157

11581158
/* If we do not create a shuffle call we do not need modify the
11591159
* return value and append to the big endian ast array. A bit confusing
1160-
* as in code we are making the final call before caputuring the return
1160+
* as in code we are making the final call before capturing the return
11611161
* value of the intrinsic that has been called.*/
11621162
let ret_val_name = "ret_val".to_string();
11631163
if let Some(simd_shuffle_call) = create_shuffle_call(&ret_val_name, return_type) {
1164-
/* There is a possibility that the funcion arguments did not
1164+
/* There is a possibility that the function arguments did not
11651165
* require big endian treatment, thus we need to now add the
11661166
* original function body before appending the return value.*/
11671167
if variant.big_endian_compose.is_empty() {
@@ -1695,8 +1695,8 @@ enum Endianness {
16951695
NA,
16961696
}
16971697

1698-
/// Based on the endianess will create the appropriate intrinsic, or simply
1699-
/// create the desired intrinsic without any endianess
1698+
/// Based on the endianness will create the appropriate intrinsic, or simply
1699+
/// create the desired intrinsic without any endianness
17001700
fn create_tokens(intrinsic: &Intrinsic, endianness: Endianness, tokens: &mut TokenStream) {
17011701
let signature = &intrinsic.signature;
17021702
let fn_name = signature.fn_name().to_string();

0 commit comments

Comments
 (0)