[jQuery] Is this a typo in the API, or am I being dense?

[jQuery] Is this a typo in the API, or am I being dense?

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
<font size="-1"><font face="Courier New, Courier, monospace">Hi folks,
I was looking at the toggleClass method in the API, and it says this:
<font color="#000099">
</font><font color="#000099">    jQuerytoggleClass( String class  )
    Adds the specified class if it is present, removes it if it is not
present.</font>
I'm finding myself confused by this. The example shows:
<font color="#000099">    Example:
    $("p").toggleClass("selected")
    HTML:
   

Hello

<p class="selected">Hello
Again
    Result:
    [ <p class="selected">Hello,

Hello
Again

]</font>
Shouldn't the API read: "Adds the specified class if it is <font
color="#ff0000">NOT</font> present, removes it if it <font
color="#ff0000">IS</font> present."
How can you remove something that is not present? It's not there to be
removed.
Is this a genuine typo or am I missing something? :o)
Chris
</font></font>
</body>
</html>
_______________________________________________
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/