Skip to content

Commit cc94c38

Browse files
committed
Small formatting fixes to make the spec parsable by the test suite scripts
1 parent c6d5918 commit cc94c38

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

spec/API_specification/array_object.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -396,7 +396,7 @@ Converts a zero-dimensional boolean array to a Python `bool` object.
396396

397397

398398
(method-__dlpack__)=
399-
### \_\_dlpack\_\_(/, *, stream=None)
399+
### \_\_dlpack\_\_(*, stream=None)
400400

401401
Exports the array as a DLPack capsule, for consumption by {ref}`function-from_dlpack`.
402402

@@ -562,7 +562,7 @@ Returns `x[key]`.
562562

563563
#### Parameters
564564

565-
- **x**: _<array;>_
565+
- **x**: _<array>_
566566

567567
- array instance.
568568

spec/API_specification/data_type_functions.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ A conforming implementation of the array API standard must provide and support t
88

99
## Objects in API
1010

11-
(finfo)=
11+
(function-finfo)=
1212
### finfo(type, /)
1313

1414
Machine limits for floating-point data types.
@@ -21,7 +21,7 @@ Machine limits for floating-point data types.
2121

2222
#### Returns
2323

24-
- **out**: _<class>_
24+
- **out**: _<ffinfo>_
2525

2626
- an object having the following attributes:
2727

@@ -34,7 +34,7 @@ Machine limits for floating-point data types.
3434
- **min**: _float_
3535
- smallest representable number.
3636

37-
(iinfo)=
37+
(function-iinfo)=
3838
### iinfo(type, /)
3939

4040
Machine limits for integer data types.
@@ -47,7 +47,7 @@ Machine limits for integer data types.
4747

4848
#### Returns
4949

50-
- **out**: _<class>_
50+
- **out**: _<iinfo>_
5151

5252
- a class with that encapsules the following attributes:
5353

@@ -70,7 +70,7 @@ If provided mixed dtypes (e.g., integer and floating-point), the returned dtype
7070

7171
#### Parameters
7272

73-
- **arrays_and_dtypes**: _Sequence\[ Union\[ <array>, <dtype> \] \];_
73+
- **arrays_and_dtypes**: _Sequence\[ Union\[ <array>, <dtype> \] \]_
7474

7575
- input arrays and dtypes.
7676

spec/API_specification/elementwise_functions.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -939,8 +939,8 @@ each element `x1_i` of the input array `x1` with the respective element `x2_i` o
939939

940940
For floating-point operands,
941941

942-
- If `x1_i` or `x2_i` is `NaN`, the result is `NaN`.
943-
- If `x1_i` or `x2_i` is `+infinity`, the result is `+infinity`.
942+
- If either `x1_i` or `x2_i` is `NaN`, the result is `NaN`.
943+
- If either `x1_i` or `x2_i` is `+infinity`, the result is `+infinity`.
944944

945945
#### Parameters
946946

0 commit comments

Comments
 (0)