summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/spack/docs/build_systems/rpackage.rst4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/spack/docs/build_systems/rpackage.rst b/lib/spack/docs/build_systems/rpackage.rst
index 5a9dd28259..486fd95b69 100644
--- a/lib/spack/docs/build_systems/rpackage.rst
+++ b/lib/spack/docs/build_systems/rpackage.rst
@@ -297,8 +297,8 @@ like so:
.. code-block:: python
- def configure_args(self, spec, prefix):
- mpi_name = spec['mpi'].name
+ def configure_args(self):
+ mpi_name = self.spec['mpi'].name
# The type of MPI. Supported values are:
# OPENMPI, LAM, MPICH, MPICH2, or CRAY