Skip to content

Commit 80e95e1

Browse files
authored
Merge pull request #286 from per1234/long-example-indentation
Fix indentation of data type reference pages' example code
2 parents 50663bb + 59ebe52 commit 80e95e1

File tree

3 files changed

+10
-10
lines changed

3 files changed

+10
-10
lines changed

Language/Variables/Data Types/float.adoc

+8-8
Original file line numberDiff line numberDiff line change
@@ -56,16 +56,16 @@ Wenn du mit floats rechnest, musst du ein Dezimalzeichen hinzufügen, andernfall
5656

5757
[source,arduino]
5858
----
59-
float myfloat;
60-
float sensorCalbrate = 1.117;
59+
float myfloat;
60+
float sensorCalbrate = 1.117;
6161
62-
int x;
63-
int y;
64-
float z;
62+
int x;
63+
int y;
64+
float z;
6565
66-
x = 1;
67-
y = x / 2; // y enthält jetzt 0, ints können keine Brüche enthalten
68-
z = (float)x / 2.0; // z enthält jetzt .5 (Du musst 2.0 verwenden, nicht 2)
66+
x = 1;
67+
y = x / 2; // y enthält jetzt 0, ints können keine Brüche enthalten
68+
z = (float)x / 2.0; // z enthält jetzt .5 (Du musst 2.0 verwenden, nicht 2)
6969
----
7070

7171

Language/Variables/Data Types/long.adoc

+1-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ Siehe auch die link:../../constants/integerconstants[Ganzzahlkonstanten]-Seite f
4545

4646
[source,arduino]
4747
----
48-
long speedOfLight = 186000L; // Auf der Ganzzahlkonstanten-Seite findest du Erläuterungen zu dem 'L'.
48+
long speedOfLight = 186000L; // Auf der Ganzzahlkonstanten-Seite findest du Erläuterungen zu dem 'L'.
4949
----
5050

5151
--

Language/Variables/Data Types/unsignedInt.adoc

+1-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ mit dem (https://de.wikipedia.org/wiki/Zweierkomplement[Zweierkomplement]).
4646

4747
[source,arduino]
4848
----
49-
unsigned int ledPin = 13;
49+
unsigned int ledPin = 13;
5050
----
5151
[%hardbreaks]
5252

0 commit comments

Comments
 (0)