Skip to content

Commit a1e5d43

Browse files
skyace65mhilbrunner
authored andcommitted
Merge pull request #7630 from CactiChameleon9/master
Fix mention of Godot3's or_lesser for export_range
1 parent d67a4e9 commit a1e5d43

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

tutorials/scripting/c_sharp/c_sharp_exports.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -207,13 +207,13 @@ Allow floats from -10 to 20 and snap the value to multiples of 0.2.
207207
[Export(PropertyHint.Range, "-10,20,0.2")]
208208
public float Number { get; set; }
209209
210-
If you add the hints "or_greater" and/or "or_lesser" you can go above
210+
If you add the hints "or_greater" and/or "or_less" you can go above
211211
or below the limits when adjusting the value by typing it instead of using
212212
the slider.
213213

214214
.. code-block:: csharp
215215
216-
[Export(PropertyHint.Range, "0,100,1,or_greater,or_lesser")]
216+
[Export(PropertyHint.Range, "0,100,1,or_greater,or_less")]
217217
public int Number { get; set; }
218218
219219
Allow values 'y = exp(x)' where 'y' varies between 100 and 1000

tutorials/scripting/gdscript/gdscript_exports.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -163,11 +163,11 @@ Allow floats from -10 to 20 and snap the value to multiples of 0.2.
163163

164164
@export_range(-10, 20, 0.2) var k: float
165165

166-
The limits can be only for the slider if you add the hints "or_greater" and/or "or_lesser".
166+
The limits can be only for the slider if you add the hints "or_greater" and/or "or_less".
167167

168168
::
169169

170-
@export_range(0, 100, 1, "or_greater", "or_lesser")
170+
@export_range(0, 100, 1, "or_greater", "or_less")
171171

172172
.. TODO: Document other hint strings usable with export_range.
173173

0 commit comments

Comments
 (0)