Skip to content

Commit 9f3bd3d

Browse files
committed
Fix typos
1 parent da479a1 commit 9f3bd3d

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

doc/files/JSON-CONFIG-PROCESSOR.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ To achieve this, we would need three processors in three different scripts. Firs
4343
extends JSONConfigProcessor
4444
4545
# Overwrite the '_postprocess' method
46-
func _postprocess(minimum : int):
46+
func _postprocess(minimum: int):
4747
# Set a global variable called 'min'
4848
set_variable("min", minimum)
4949
@@ -57,7 +57,7 @@ The 'set_max' postprocessor:
5757
extends JSONConfigProcessor
5858
5959
# Overwrite the '_postprocess' method
60-
func _postprocess(maximum : int):
60+
func _postprocess(maximum: int):
6161
# Set a global variable called 'max'
6262
set_variable("max", maximum)
6363
@@ -126,7 +126,7 @@ enum Genders{
126126
}
127127
128128
129-
func _postprocess(gender : String):
129+
func _postprocess(gender: String):
130130
match gender:
131131
"MALE":
132132
return Genders.MALE
@@ -173,13 +173,13 @@ Would generate this dictionary:
173173

174174
## Example: Primes validation
175175

176-
In this last example, we would raise a custom error. We will check if an integer is a prime. For this purpose, we need to create another postprocessor called 'prime_check':
176+
In this last example, we would raise a custom error. We will check if an integer is prime. For this purpose, we need to create another postprocessor called 'prime_check':
177177

178178
```GDScript
179179
extends JSONConfigProcessor
180180
181181
182-
func _postprocess(integer : int):
182+
func _postprocess(integer: int):
183183
# One is not a prime >:(
184184
if integer == 1:
185185
add_error({"error": "This is not a prime"})

0 commit comments

Comments
 (0)