Skip to content

Commit

Permalink
revert
Browse files Browse the repository at this point in the history
  • Loading branch information
9il committed Apr 20, 2015
1 parent 35d954b commit 32a1d68
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions docs/source/example.rst
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ The following program prints "Hello, World!" to the standard output.
.. literalinclude:: ../../examples/helloworld.c
:language: c
:tab-width: 4
:caption: Hello World program in C


D `doesn't have a preprocessor <http://dlang.org/pretod.html>`_.
Expand All @@ -30,13 +31,15 @@ Module ``core.stdc.stdio`` contains the ``puts`` prototype:
.. literalinclude:: ../../examples/helloworld1.d
:language: d
:tab-width: 4
:caption: Hello World program in D (C style)


Common D "Hello, World!" program based on Phobos_ looks simpler:

.. literalinclude:: ../../examples/helloworld2.d
:language: d
:tab-width: 4
:caption: Hello World program in D

Phobos is the standard runtime library that comes with the D language compiler.

Expand Down

0 comments on commit 32a1d68

Please sign in to comment.