Skip to content

Commit d30169c

Browse files
authored
Merge pull request #788 from amanvirparhar/patch-1
Wrong parameter name for cast() in docs
2 parents c49ce89 + bc773f3 commit d30169c

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

docs/docs/text/extraction.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -142,13 +142,13 @@ Sometimes the cast operation is obvious, as in the "big apple" example above. Ot
142142
In a simple case, instructions can be used independent of any type-casting. Here, we want to keep the output a string, but get the 2-letter abbreviation of the state.
143143

144144
```python
145-
marvin.cast('California', to=str, instruction="The state's abbreviation")
145+
marvin.cast('California', to=str, instructions="The state's abbreviation")
146146
# "CA"
147147

148-
marvin.cast('The sunshine state', to=str, instruction="The state's abbreviation")
148+
marvin.cast('The sunshine state', to=str, instructions="The state's abbreviation")
149149
# "FL"
150150

151-
marvin.cast('Mass.', to=str, instruction="The state's abbreviation")
151+
marvin.cast('Mass.', to=str, instructions="The state's abbreviation")
152152
# MA
153153
```
154154

docs/docs/text/transformation.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -56,13 +56,13 @@ Sometimes the cast operation is obvious, as in the "big apple" example above. Ot
5656
In a simple case, instructions can be used independent of any type-casting. Here, we want to keep the output a string, but get the 2-letter abbreviation of the state.
5757

5858
```python
59-
marvin.cast('California', target=str, instruction="The state's abbreviation")
59+
marvin.cast('California', target=str, instructions="The state's abbreviation")
6060
# "CA"
6161

62-
marvin.cast('The sunshine state', target=str, instruction="The state's abbreviation")
62+
marvin.cast('The sunshine state', target=str, instructions="The state's abbreviation")
6363
# "FL"
6464

65-
marvin.cast('Mass.', target=str, instruction="The state's abbreviation")
65+
marvin.cast('Mass.', target=str, instructions="The state's abbreviation")
6666
# MA
6767
```
6868

0 commit comments

Comments
 (0)