Mercurial > octave-nkf
comparison src/ov.cc @ 14360:97883071e8e4
doc: Correct off-by-1 spacings in all .cc docstrings
* __makeinfo__.m: Only remove space at beginning of new line for
docstrings from scripts/ directory where this is the convention.
* besselj.cc, betainc.cc, cellfun.cc, dot.cc, fftw.cc, filter.cc, find.cc,
gammainc.cc, gcd.cc, givens.cc, hex2num.cc, kron.cc, lu.cc, max.cc, qr.cc,
quadcc.cc, qz.cc, regexp.cc, strfind.cc, sub2ind.cc, syl.cc, time.cc,
typecast.cc, urlwrite.cc, data.cc, dirfns.cc, file-io.cc, help.cc,
load-path.cc, mappers.cc, oct-parse.yy, ov-base.cc, ov-cell.cc, ov-struct.cc,
ov.cc, pr-output.cc, pt-mat.cc, strfns.cc, syscalls.cc, variables.cc:
Improve appearance of docstring spacing of @example code.
author | Rik <octave@nomad.inbox5.com> |
---|---|
date | Mon, 13 Feb 2012 07:42:56 -0800 |
parents | 72c96de7a403 |
children | eff4a5933e28 |
comparison
equal
deleted
inserted
replaced
14359:7277fe922e99 | 14360:97883071e8e4 |
---|---|
2809 a matrix\n\ | 2809 a matrix\n\ |
2810 \n\ | 2810 \n\ |
2811 @example\n\ | 2811 @example\n\ |
2812 @group\n\ | 2812 @group\n\ |
2813 val = magic(3)\n\ | 2813 val = magic(3)\n\ |
2814 @result{} val = [ 8 1 6\n\ | 2814 @result{} val = [ 8 1 6\n\ |
2815 3 5 7\n\ | 2815 3 5 7\n\ |
2816 4 9 2 ]\n\ | 2816 4 9 2 ]\n\ |
2817 idx.type = \"()\";\n\ | 2817 idx.type = \"()\";\n\ |
2818 idx.subs = @{\":\", 1:2@};\n\ | 2818 idx.subs = @{\":\", 1:2@};\n\ |
2819 subsref(val, idx)\n\ | 2819 subsref (val, idx)\n\ |
2820 @result{} [ 8 1\n\ | 2820 @result{} [ 8 1\n\ |
2821 3 5\n\ | 2821 3 5\n\ |
2822 4 9 ]\n\ | 2822 4 9 ]\n\ |
2823 @end group\n\ | 2823 @end group\n\ |
2824 @end example\n\ | 2824 @end example\n\ |
2871 The following example shows how to set the two first columns of a\n\ | 2871 The following example shows how to set the two first columns of a\n\ |
2872 3-by-3 matrix to zero.\n\ | 2872 3-by-3 matrix to zero.\n\ |
2873 \n\ | 2873 \n\ |
2874 @example\n\ | 2874 @example\n\ |
2875 @group\n\ | 2875 @group\n\ |
2876 val = magic(3);\n\ | 2876 val = magic (3);\n\ |
2877 idx.type = \"()\";\n\ | 2877 idx.type = \"()\";\n\ |
2878 idx.subs = @{\":\", 1:2@};\n\ | 2878 idx.subs = @{\":\", 1:2@};\n\ |
2879 subsasgn (val, idx, 0)\n\ | 2879 subsasgn (val, idx, 0)\n\ |
2880 @result{} [ 0 0 6\n\ | 2880 @result{} [ 0 0 6\n\ |
2881 0 0 7\n\ | 2881 0 0 7\n\ |
2882 0 0 2 ]\n\ | 2882 0 0 2 ]\n\ |
2883 @end group\n\ | 2883 @end group\n\ |
2884 @end example\n\ | 2884 @end example\n\ |
2885 \n\ | 2885 \n\ |
2886 Note that this is the same as writing @code{val(:,1:2) = 0}.\n\ | 2886 Note that this is the same as writing @code{val(:,1:2) = 0}.\n\ |
2887 \n\ | 2887 \n\ |