summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorPaul Fisher <rao@gnu.org>1998-06-26 18:11:58 +0000
committerPaul Fisher <rao@gnu.org>1998-06-26 18:11:58 +0000
commit2ad6b8870f8269cc68043f7ef9dd8bbf0ce1c40f (patch)
tree75a74d112363e5774ad34fc8e545be6bfd81617e /doc
parentbe14f420e029d24020e0b5a9b09775bc9d334008 (diff)
downloadclasspath-2ad6b8870f8269cc68043f7ef9dd8bbf0ce1c40f.tar.gz
Fix typo.
Diffstat (limited to 'doc')
-rw-r--r--doc/jcl-hacking.texinfo8
1 files changed, 4 insertions, 4 deletions
diff --git a/doc/jcl-hacking.texinfo b/doc/jcl-hacking.texinfo
index ca1604c67..ed896f0f6 100644
--- a/doc/jcl-hacking.texinfo
+++ b/doc/jcl-hacking.texinfo
@@ -318,19 +318,19 @@ argument is passed which is null, per a Sun specification, do not write
code like:
@example
-int strlen(String foo) throws NullPointerException {
+int strlen(String foo) throws NullPointerException @{
if (foo == null)
throw new NullPointerException("foo is null");
return foo.length();
-}
+@}
@end example
Instead, the code should be written as:
@example
-int strlen(String foo) throws NullPointerException {
+int strlen(String foo) throws NullPointerException @{
return foo.length();
-}
+@}
@end example
Explicitly comparing foo to null is unnecessary, as the virtual machine