diff options
| author | Nami-Doc <vendethiel@hotmail.fr> | 2014-02-16 15:08:46 +0100 | 
|---|---|---|
| committer | Nami-Doc <vendethiel@hotmail.fr> | 2014-02-16 15:08:46 +0100 | 
| commit | 6840b080b069678a5f5e627b27716712b503257f (patch) | |
| tree | db878c8571d525ed6d80bbb07aa5b90c1eb4b0f1 | |
| parent | edc8c4ff2776755549fab8f7fe2bc8777aa4620d (diff) | |
| parent | 00338a1a61040b70ec3e068f69ccfad31aa1934d (diff) | |
Merge pull request #533 from Olwaro/csharp_fix
[csharp/en] Fixes some misleading comments
| -rw-r--r-- | csharp.html.markdown | 8 | 
1 files changed, 4 insertions, 4 deletions
| diff --git a/csharp.html.markdown b/csharp.html.markdown index dad0c26b..3a870b7a 100644 --- a/csharp.html.markdown +++ b/csharp.html.markdown @@ -105,7 +105,7 @@ namespace Learning              Console.WriteLine(fooString);              // You can access each character of the string with an indexer: -            char charFromString = fooString[1]; // 'y' +            char charFromString = fooString[1]; // => 'e'              // Strings are immutable: you can't do fooString[1] = 'X';              // Compare strings with current culture, ignoring case @@ -173,7 +173,7 @@ on a new line! ""Wow!"", the masses cried";              int i1 = 1, i2 = 2; // Shorthand for multiple declarations              // Arithmetic is straightforward -            Console.WriteLine(i1 + i2 - i1 * 3 / 7); // +            Console.WriteLine(i1 + i2 - i1 * 3 / 7); // => 3              // Modulo              Console.WriteLine("11%3 = " + (11 % 3)); // => 2 @@ -241,7 +241,7 @@ on a new line! ""Wow!"", the masses cried";              int fooDoWhile = 0;              do              { -                //Iterated 99 times, fooDoWhile 0->99 +                //Iterated 100 times, fooDoWhile 0->99                  fooDoWhile++;              } while (fooDoWhile < 100); @@ -576,7 +576,7 @@ on a new line! ""Wow!"", the masses cried";              AIST,              BMC,              Electra = 42, //you can explicitly set a value to a name -            Gitane +            Gitane // 43          }          // We defined this type inside a Bicycle class, so it is a nested type          // Code outside of this class should reference this type as Bicycle.Brand | 
