Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 2ac5be0

Browse files
karlsoderbyper1234
andauthored
Apply suggestions from code review
Co-authored-by: per1234 <accounts@perglass.com>
1 parent 074f4d2 commit 2ac5be0

File tree

1 file changed

+18
-4
lines changed

1 file changed

+18
-4
lines changed

‎Language/Functions/Bits and Bytes/bitSet.adoc‎

Lines changed: 18 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,13 +34,23 @@ Sets (writes a 1 to) a bit of a numeric variable.
3434

3535
[float]
3636
=== Returns
37-
x: the value of the numeric variable after the bit at position n is set.
37+
`x`: the value of the numeric variable after the bit at position `n` is set.
38+
39+
--
40+
// OVERVIEW SECTION ENDS
3841

3942

43+
44+
// HOW TO USE SECTION STARTS
45+
[#howtouse]
46+
--
47+
4048
[float]
4149
=== Example Code
42-
Prints the output of bitSet(x,n) on two given integers. The binary representation of 4 is 0100, so when n=1, the second bit from the right is set to 1. After this we are left with 0110 in binary, so 6 is returned.
50+
Prints the output of `bitSet(x,n)` on two given integers. The binary representation of 4 is 0100, so when `n=1`, the second bit from the right is set to 1. After this we are left with 0110 in binary, so 6 is returned.
4351

52+
[source,arduino]
53+
----
4454
void setup() {
4555
Serial.begin(9600);
4656
while (!Serial) {
@@ -54,9 +64,11 @@ void setup() {
5464
5565
void loop() {
5666
}
67+
----
68+
[%hardbreaks]
5769

5870
--
59-
// OVERVIEW SECTION ENDS
71+
// HOW TO USE SECTION ENDS
6072

6173

6274
// SEE ALSO SECTION
@@ -65,7 +77,9 @@ void loop() {
6577

6678
[float]
6779
=== See also
68-
bitClear()
80+
81+
[role="language"]
82+
* #LANGUAGE# link:../bitclear[bitClear()]
6983

7084
--
7185
// SEE ALSO SECTION ENDS

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /