changeset 17757:dae2230227a7

doc: Use double-quote in preference to single quote in code examples. * doc/interpreter/errors.txi, doc/interpreter/interp.txi, doc/interpreter/intro.txi, doc/interpreter/java.txi, libinterp/corefcn/besselj.cc, libinterp/octave-value/ov-usr-fcn.cc: Use double-quote in preference to single quote in code examples.
author Rik <rik@octave.org>
date Thu, 24 Oct 2013 15:22:04 -0700
parents 9aff1c9fd70f
children e9a1b97ef78d 6e15053c0fe5
files doc/interpreter/debug.txi doc/interpreter/errors.txi doc/interpreter/interp.txi doc/interpreter/intro.txi doc/interpreter/java.txi libinterp/corefcn/besselj.cc libinterp/octave-value/ov-usr-fcn.cc
diffstat 7 files changed, 22 insertions(+), 22 deletions(-) [+]
line wrap: on
line diff
--- a/doc/interpreter/debug.txi	Thu Oct 24 14:44:23 2013 -0700
+++ b/doc/interpreter/debug.txi	Thu Oct 24 15:22:04 2013 -0700
@@ -306,7 +306,7 @@
 foo;
 profile off;
 
-data = profile ('info');
+data = profile ("info");
 profshow (data, 10);
 @end group
 @end example
@@ -386,7 +386,7 @@
 bar (20);
 profile off;
 
-profshow (profile ('info'));
+profshow (profile ("info"));
 @end group
 @end example
 
@@ -424,7 +424,7 @@
 foo;
 profile off;
 
-profshow (profile ('info'), 10);
+profshow (profile ("info"), 10);
 @end group
 @end example
 
--- a/doc/interpreter/errors.txi	Thu Oct 24 14:44:23 2013 -0700
+++ b/doc/interpreter/errors.txi	Thu Oct 24 15:22:04 2013 -0700
@@ -268,9 +268,9 @@
 @example
 @group
 function rand42
-  old_state = rand ('state');
-  restore_state = onCleanup (@@() rand ('state', old_state);
-  rand ('state', 42);
+  old_state = rand ("state");
+  restore_state = onCleanup (@@() rand ("state", old_state);
+  rand ("state", 42);
   @dots{}
 endfunction  # rand generator state restored by onCleanup
 @end group
--- a/doc/interpreter/interp.txi	Thu Oct 24 14:44:23 2013 -0700
+++ b/doc/interpreter/interp.txi	Thu Oct 24 15:22:04 2013 -0700
@@ -56,10 +56,10 @@
 ddys = diff (diff (ys)./dti) ./ dti;
 ddyp = diff (diff (yp)./dti) ./ dti;
 figure (1);
-plot (ti,ys,'r-', ti,yp,'g-');
+plot (ti,ys,"r-", ti,yp,"g-");
 legend ("spline", "pchip", 4);
 figure (2);
-plot (ti,ddys,'r+', ti,ddyp,'g*');
+plot (ti,ddys,"r+", ti,ddyp,"g*");
 legend ("spline", "pchip");
 @end group
 @end example
@@ -102,8 +102,8 @@
 y = sin (4*t + 0.3) .* cos (3*t - 0.1);
 yp = sin (4*ti + 0.3) .* cos (3*ti - 0.1);
 plot (ti, yp, "g", ti, interp1 (t, y, ti, "spline"), "b", ...
-      ti, interpft (y, k), "c", t, y, 'r+');
-legend ('sin(4t+0.3)cos(3t-0.1', "spline", "interpft", "data");
+      ti, interpft (y, k), "c", t, y, "r+");
+legend ("sin(4t+0.3)cos(3t-0.1)", "spline", "interpft", "data");
 @end group
 @end example
 
--- a/doc/interpreter/intro.txi	Thu Oct 24 14:44:23 2013 -0700
+++ b/doc/interpreter/intro.txi	Thu Oct 24 15:22:04 2013 -0700
@@ -524,7 +524,7 @@
 @example
 @group
 fieldnames ([1, 2; 3, 4])
-error: fieldnames: wrong type argument 'matrix'
+error: fieldnames: Invalid input argument
 @end group
 @end example
 
--- a/doc/interpreter/java.txi	Thu Oct 24 14:44:23 2013 -0700
+++ b/doc/interpreter/java.txi	Thu Oct 24 15:22:04 2013 -0700
@@ -173,7 +173,7 @@
   persistent cacheval;  % speeds up repeated calls
 
   if isempty (cacheval)
-    cacheval = (exist ('OCTAVE_VERSION', 'builtin') > 0);
+    cacheval = (exist ("OCTAVE_VERSION", "builtin") > 0);
   end
 
   retval = cacheval;
@@ -253,11 +253,11 @@
 Example:
 
 @example
-octave> base_path = 'C:/Octave/java_files';
+octave> base_path = "C:/Octave/java_files";
 
 octave> % add two JARchives to the dynamic classpath
-octave> javaaddpath ([base_path, '/someclasses.jar']);
-octave> javaaddpath ([base_path, '/moreclasses.jar']);
+octave> javaaddpath ([base_path, "/someclasses.jar"]);
+octave> javaaddpath ([base_path, "/moreclasses.jar"]);
 
 octave> % check the dynamic classpath
 octave> p = javaclasspath;
@@ -267,7 +267,7 @@
 C:/Octave/java_files/moreclasses.jar
 
 octave> % remove the first element from the classpath
-octave> javarmpath ([base_path, '/someclasses.jar']);
+octave> javarmpath ([base_path, "/someclasses.jar"]);
 octave> p = javaclasspath;
 octave> disp (p@{1@});
 C:/Octave/java_files/moreclasses.jar
@@ -287,8 +287,8 @@
 @example
 @group
 % contents of .octaverc:
-addpath ('~/octave');
-javaaddpath ('~/octave/myclasses.jar');
+addpath ("~/octave");
+javaaddpath ("~/octave/myclasses.jar");
 @end group
 @end example
 
@@ -305,7 +305,7 @@
 Example:
 
 @example
-Passenger = javaObject ('package.FirstClass', row, seat);
+Passenger = javaObject ("package.FirstClass", row, seat);
 @end example
 
 @c ------------------------------------------------------------------------
@@ -377,7 +377,7 @@
 
 @example
 @group
-octave> javaMethod ('getProperty', 'java.lang.System', 'MyProperty');
+octave> javaMethod ("getProperty", "java.lang.System", "MyProperty");
 ans = 12.34
 @end group
 @end example
--- a/libinterp/corefcn/besselj.cc	Thu Oct 24 14:44:23 2013 -0700
+++ b/libinterp/corefcn/besselj.cc	Thu Oct 24 15:22:04 2013 -0700
@@ -529,7 +529,7 @@
 \n\
 @example\n\
 @group\n\
- K   Function   Scale factor (if 'opt' is supplied)\n\
+ K   Function   Scale factor (if \"opt\" is supplied)\n\
 ---  --------   ---------------------------------------\n\
  0   Ai (Z)     exp ((2/3) * Z * sqrt (Z))\n\
  1   dAi(Z)/dZ  exp ((2/3) * Z * sqrt (Z))\n\
--- a/libinterp/octave-value/ov-usr-fcn.cc	Thu Oct 24 14:44:23 2013 -0700
+++ b/libinterp/octave-value/ov-usr-fcn.cc	Thu Oct 24 15:22:04 2013 -0700
@@ -879,7 +879,7 @@
 In the second usage,\n\
 \n\
 @example\n\
-nargout (@@histc) \% or nargout ('histc')\n\
+nargout (@@histc) \% or nargout (\"histc\")\n\
 @end example\n\
 \n\
 @noindent\n\