From bf1fe71a83a244dcfe36c543913829aaaf624f2e Mon Sep 17 00:00:00 2001 From: KoenigKrote Date: Fri, 21 Feb 2020 18:41:29 -0700 Subject: [PATCH 1/2] Rephrase variable declaration comments --- c.html.markdown | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/c.html.markdown b/c.html.markdown index e5ffc379..5b02390d 100644 --- a/c.html.markdown +++ b/c.html.markdown @@ -89,10 +89,12 @@ int main (int argc, char** argv) // Types /////////////////////////////////////// - // All variables MUST be declared at the top of the current block scope - // we declare them dynamically along the code for the sake of the tutorial - // (however, C99-compliant compilers allow declarations near the point where - // the value is used) + // Compilers that are not C99-compliant requires that variables MUST be + // declared at the top of the current block scope. + // Compilers that ARE C99-compliant allow declarations near the point where + // the value is used. + // For the sake of the tutorial, variables are declared dynamically under + // C99-compliant standards. // ints are usually 4 bytes int x_int = 0; From 842b247b74a81d8e00dab83875d1f5de15db3cc7 Mon Sep 17 00:00:00 2001 From: KoenigKrote Date: Fri, 21 Feb 2020 18:46:28 -0700 Subject: [PATCH 2/2] Requires -> Require --- c.html.markdown | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/c.html.markdown b/c.html.markdown index 5b02390d..a57be1dc 100644 --- a/c.html.markdown +++ b/c.html.markdown @@ -89,7 +89,7 @@ int main (int argc, char** argv) // Types /////////////////////////////////////// - // Compilers that are not C99-compliant requires that variables MUST be + // Compilers that are not C99-compliant require that variables MUST be // declared at the top of the current block scope. // Compilers that ARE C99-compliant allow declarations near the point where // the value is used.