diff --git a/docs_sphinx/advanced/preferences.rst b/docs_sphinx/advanced/preferences.rst index ea9b895b1..fead094f7 100644 --- a/docs_sphinx/advanced/preferences.rst +++ b/docs_sphinx/advanced/preferences.rst @@ -3,7 +3,7 @@ Preferences Brian has a system of global preferences that affect how certain objects behave. These can be set either in scripts by using the `prefs` object -or in a file. Each preference looks like ``codegen.c.compiler``, i.e. dotted +or in a file. Each preference looks like ``codegen.cpp.compiler``, i.e. dotted names. Accessing and setting preferences @@ -11,13 +11,13 @@ Accessing and setting preferences Preferences can be accessed and set either keyword-based or attribute-based. The following are equivalent:: - prefs['codegen.c.compiler'] = 'gcc' - prefs.codegen.c.compiler = 'gcc' + prefs['codegen.cpp.compiler'] = 'unix' + prefs.codegen.cpp.compiler = 'unix' Using the attribute-based form can be particulary useful for interactive work, e.g. in ipython, as it offers autocompletion and documentation. -In ipython, ``prefs.codegen.c?`` would display a docstring with all -the preferences available in the ``codegen.c`` category. +In ipython, ``prefs.codegen.cpp?`` would display a docstring with all +the preferences available in the ``codegen.cpp`` category. Preference files ----------------