Mercurial > octave
changeset 24000:d9ef3699b614
doc: Improve docstring for repelem().
* scripts/general/repelem.m: @var{} does not allow brackets (), as they are not
valid variable chars. Rather embed the expression in an @code{} environment
using two separate @var{} environments for the variables. This suppresses some
Texinfo warnings.
author | Kai T. Ohlhus <k.ohlhus@gmail.com> |
---|---|
date | Mon, 04 Sep 2017 10:51:43 +0200 |
parents | 21d2114476a4 |
children | 8e4abfaadd97 |
files | scripts/general/repelem.m |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/scripts/general/repelem.m Sat Sep 02 17:54:22 2017 -0700 +++ b/scripts/general/repelem.m Mon Sep 04 10:51:43 2017 +0200 @@ -29,7 +29,7 @@ ## is repeated @var{R_j} times. If the instruction is a vector then it must ## have the same number of elements as the corresponding dimension @var{j} of ## @var{x}. In this case, the @var{k}th component of dimension @var{j} is -## repeated @var{R_j(k)} times. +## repeated @code{@var{R_j}(@var{k})} times. ## ## If @var{x} is a scalar or vector then @code{repelem} may be called with just ## a single repeat instruction @var{R} and @code{repelem} will return a vector