-
-
Notifications
You must be signed in to change notification settings - Fork 727
Commit f0431be
[Documentation] Missing data type (#817)
* [Documentation] Missing data type
In the documentation of Floating Point is this example:
```
n = 0.005; // 0.005 is a floating point constant
```
This code simply won't compile and get this error :
'n' does not name a type
so this Line should be :
```
const float n = 0.005; // 0.005 is a floating point constant
```
Although this error may seem trivial for some professional , but I think it seems misleading to newcomers.
* Update Language/Variables/Constants/floatingPointConstants.adoc
Co-authored-by: per1234 <accounts@perglass.com>
Co-authored-by: per1234 <accounts@perglass.com>1 parent 898949b commit f0431be
1 file changed
+1
-1
lines changedOriginal file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
34 | 34 |
| |
35 | 35 |
| |
36 | 36 |
| |
37 | - | ||
37 | + | ||
38 | 38 |
| |
39 | 39 |
| |
40 | 40 |
| |
|
0 commit comments