Skip to content

Commit b93d2c2

Browse files
authored
Merge pull request #45 from data-apis/fix-markup
Fix markup
2 parents c899475 + b4fdaef commit b93d2c2

File tree

1 file changed

+14
-12
lines changed

1 file changed

+14
-12
lines changed

spec/API_specification/creation_functions.md

+14-12
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,15 @@ Returns evenly spaced values within the half-open interval `[start, stop)` as a
2323

2424
- the end of the interval. Default: `None`.
2525

26-
_Note: this function cannot guarantee that the interval does not include the `stop` value in those cases where `step` is not an integer and floating-point rounding errors affect the length of the output array._
26+
.. note::
27+
28+
This function cannot guarantee that the interval does not include the `stop` value in those cases where `step` is not an integer and floating-point rounding errors affect the length of the output array.
2729

2830
- **step**: _Union\[ int, float ]_
2931

3032
- the distance between two adjacent elements (`out[i+1] - out[i]`). Default: `1`.
3133

32-
- **dtype**: _Optional\[ _<dtype>_ ]_
34+
- **dtype**: _Optional\[ <dtype> ]_
3335

3436
- output array data type. Default: `None`.
3537

@@ -49,7 +51,7 @@ Returns an uninitialized array having a specified `shape`.
4951

5052
- output array shape.
5153

52-
- **dtype**: _Optional\[ _<dtype>_ ]_
54+
- **dtype**: _Optional\[ <dtype> ]_
5355

5456
- output array data type. Default: `None`.
5557

@@ -69,7 +71,7 @@ Returns an uninitialized array with the same `shape` as an input array `x`.
6971

7072
- input array from which to derive the output array shape.
7173

72-
- **dtype**: _Optional\[ _<dtype>_ ]_
74+
- **dtype**: _Optional\[ <dtype> ]_
7375

7476
- output array data type. If `dtype` is `None`, the output array data type must be inferred from `x`. Default: `None`.
7577

@@ -97,7 +99,7 @@ Returns a two-dimensional array with ones on the `k`th diagonal and zeros elsewh
9799

98100
- index of the diagonal. A positive value refers to an upper diagonal, a negative value to a lower diagonal, and `0` to the main diagonal. Default: `0`.
99101

100-
- **dtype**: _Optional\[ _<dtype>_ ]_
102+
- **dtype**: _Optional\[ <dtype> ]_
101103

102104
- output array data type. Default: `None`.
103105

@@ -121,7 +123,7 @@ Returns a new array having a specified `shape` and filled with `fill_value`.
121123

122124
- fill value.
123125

124-
- **dtype**: _Optional\[ _<dtype>_ ]_
126+
- **dtype**: _Optional\[ <dtype> ]_
125127

126128
- output array data type. Default: `None`.
127129

@@ -145,7 +147,7 @@ Returns a new array filled with `fill_value` and having the same `shape` as an i
145147

146148
- fill value.
147149

148-
- **dtype**: _Optional\[ _<dtype>_ ]_
150+
- **dtype**: _Optional\[ <dtype> ]_
149151

150152
- output array data type. If `dtype` is `None`, the output array data type must be inferred from `x`. Default: `None`.
151153

@@ -175,7 +177,7 @@ Returns evenly spaced numbers over a specified interval.
175177

176178
- number of samples. Must be a non-negative integer value; otherwise, the function must raise an exception.
177179

178-
- **dtype**: _Optional\[ _<dtype>_ ]_
180+
- **dtype**: _Optional\[ <dtype> ]_
179181

180182
- output array data type. Default: `None`.
181183

@@ -199,7 +201,7 @@ Returns a new array having a specified `shape` and filled with ones.
199201

200202
- output array shape.
201203

202-
- **dtype**: _Optional\[ _<dtype>_ ]_
204+
- **dtype**: _Optional\[ <dtype> ]_
203205

204206
- output array data type. Default: `None`.
205207

@@ -219,7 +221,7 @@ Returns a new array filled with ones and having the same `shape` as an input arr
219221

220222
- input array from which to derive the output array shape.
221223

222-
- **dtype**: _Optional\[ _<dtype>_ ]_
224+
- **dtype**: _Optional\[ <dtype> ]_
223225

224226
- output array data type. If `dtype` is `None`, the output array data type must be inferred from `x`. Default: `None`.
225227

@@ -239,7 +241,7 @@ Returns a new array having a specified `shape` and filled with zeros.
239241

240242
- output array shape.
241243

242-
- **dtype**: _Optional\[ _<dtype>_ ]_
244+
- **dtype**: _Optional\[ <dtype> ]_
243245

244246
- output array data type. Default: `None`.
245247

@@ -259,7 +261,7 @@ Returns a new array filled with zeros and having the same `shape` as an input ar
259261

260262
- input array from which to derive the output array shape.
261263

262-
- **dtype**: _Optional\[ _<dtype>_ ]_
264+
- **dtype**: _Optional\[ <dtype> ]_
263265

264266
- output array data type. If `dtype` is `None`, the output array data type must be inferred from `x`. Default: `None`.
265267

0 commit comments

Comments
 (0)