From b91962dff68d22e48b0d18ce8864d84287eb70ec Mon Sep 17 00:00:00 2001
From: HowardWParr <107371728+HowardWParr@users.noreply.github.com>
Date: Sun, 12 Jun 2022 17:46:20 -0500
Subject: [PATCH] Update bitWrite.adoc

bitWrite() function does return the updated value.
---
 Language/Functions/Bits and Bytes/bitWrite.adoc | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/Language/Functions/Bits and Bytes/bitWrite.adoc b/Language/Functions/Bits and Bytes/bitWrite.adoc
index b12982ed5..edba71380 100644
--- a/Language/Functions/Bits and Bytes/bitWrite.adoc	
+++ b/Language/Functions/Bits and Bytes/bitWrite.adoc	
@@ -35,7 +35,7 @@ Writes a bit of a numeric variable.
 
 [float]
 === Returns
-Nothing
+x: the value of the numeric variable after the bit at position n is written.
 
 --
 // OVERVIEW SECTION ENDS
@@ -59,6 +59,7 @@ void setup() {
   Serial.println(x, BIN); // 10000000
   bitWrite(x, 0, 1);  // write 1 to the least significant bit of x
   Serial.println(x, BIN); // 10000001
+  Serial.println(bitWrite(x, 1, 1), BIN); // 10000011
 }
 
 void loop() {}