diff --git a/docs/Projects.rst b/docs/Projects.rst
index 5935aeb9377..e5280fa580e 100644
--- a/docs/Projects.rst
+++ b/docs/Projects.rst
@@ -273,14 +273,14 @@ Variables for Building Programs
``LIBS``
- To link dynamic libraries, add -l<library base name> to the
- ``LIBS`` variable. The LLVM build system will look in the same places for
- dynamic libraries as it does for static libraries.
+ To link dynamic libraries, add ``-l`` to the ``LIBS``
+ variable. The LLVM build system will look in the same places for dynamic
+ libraries as it does for static libraries.
For example, to link ``libsample.so``, you would have the following line in
your ``Makefile``:
-.. code-block: Makefile
+.. code-block:: Makefile
LIBS += -lsample