Skip to content

Commit f13ef80

Browse files
committed
Fix typos in const page
Includes fixes for regressions of typos reported in arduino/Arduino#6506 and previously fixed.
1 parent 105dee6 commit f13ef80

File tree

1 file changed

+2
-2
lines changed
  • Language/Variables/Variable Scope & Qualifiers

1 file changed

+2
-2
lines changed

Language/Variables/Variable Scope & Qualifiers/const.adoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ subCategories: [ "Variable Scope & Qualifiers" ]
2020
=== Description
2121
The `const` keyword stands for constant. It is a variable _qualifier_ that modifies the behavior of the variable, making a variable "_read-only_". This means that the variable can be used just as any other variable of its type, but its value cannot be changed. You will get a compiler error if you try to assign a value to a `const` variable.
2222

23-
Constants defined with the const keyword obey the rules of link:../scope[variable scoping] that govern other variables. This, and the pitfalls of using#define, makes the const keyword a superior method for defining constants and is preferred over using link:../../../structure/further-syntax/define[#define].
23+
Constants defined with the `const` keyword obey the rules of link:../scope[variable scoping] that govern other variables. This, and the pitfalls of using `#define`, makes the `const` keyword a superior method for defining constants and is preferred over using link:../../../structure/further-syntax/define[`#define`].
2424
[%hardbreaks]
2525

2626
--
@@ -45,7 +45,7 @@ float x;
4545
4646
// ....
4747
48-
x = pi * 2; // it's fine to use const's in math
48+
x = pi * 2; // it's fine to use consts in math
4949
5050
pi = 7; // illegal - you can't write to (modify) a constant
5151

0 commit comments

Comments
 (0)