aboutsummaryrefslogtreecommitdiffstats
path: root/docs/source/arduino/comments.rst
diff options
context:
space:
mode:
authorMarti Bolivar <mbolivar@mit.edu>2010-12-21 10:27:37 -0500
committerMarti Bolivar <mbolivar@mit.edu>2010-12-21 10:27:37 -0500
commitc45bccad44187da27505cf5808424e709e3f54a1 (patch)
tree18a459a50f8d0551ba046e30462c93999d982725 /docs/source/arduino/comments.rst
parent84fd2532a7f23d20354ff590790b3f892cb7e7d7 (diff)
parentd5ad2a27f4e69e6cc9324331945937c983c30366 (diff)
downloadlibrambutan-c45bccad44187da27505cf5808424e709e3f54a1.tar.gz
librambutan-c45bccad44187da27505cf5808424e709e3f54a1.zip
Merge branch 'master' into debug-serialusb.
Chose debug-serialusb version in cases of conflict. Conflicts: libmaple/usb/usb_callbacks.c
Diffstat (limited to 'docs/source/arduino/comments.rst')
-rw-r--r--docs/source/arduino/comments.rst45
1 files changed, 0 insertions, 45 deletions
diff --git a/docs/source/arduino/comments.rst b/docs/source/arduino/comments.rst
deleted file mode 100644
index 189ead5..0000000
--- a/docs/source/arduino/comments.rst
+++ /dev/null
@@ -1,45 +0,0 @@
-.. _arduino-comments:
-
-Comments
-========
-
-Comments are lines in the program that are used to inform yourself
-or others about the way the program works. They are ignored by the
-compiler, and not exported to the processor, so they don't take up
-any space on the Atmega chip.
-
-
-
-Comments only purpose are to help you understand (or remember) how
-your program works or to inform others how your program works.
-There are two different ways of marking a line as a comment:
-
-
-
-Example
--------
-
-::
-
- x = 5; // This is a single line comment. Anything after the slashes is a comment
- // to the end of the line
-
- /* this is multiline comment - use it to comment out whole blocks of code
-
- if (gwb == 0){ // single line comment is OK inside a multiline comment
- x = 3; /* but not another multiline comment - this is invalid */
- }
- // don't forget the "closing" comment - they have to be balanced!
- */
-
-
-
-**Tip**
-When experimenting with code, "commenting out" parts of your
-program is a convenient way to remove lines that may be buggy. This
-leaves the lines in the code, but turns them into comments, so the
-compiler just ignores them. This can be especially useful when
-trying to locate a problem, or when a program refuses to compile
-and the compiler error is cryptic or unhelpful.
-
-