Fix comment to say 'createInstance' when it really means that, since this is pointed to by devmo as API documentation; no bug; rs=shaver
authordmose@mozilla.org
Wed, 18 Jul 2007 13:19:05 -0700
changeset 3636 a18205b66f98579409f1911266f87d1f29306601
parent 3635 01b9247b8e34a9e33b19dd11b7ce9f6f6a917ade
child 3637 b80fc9ff2fc97dbde843763e39998d80a6489c5a
push idunknown
push userunknown
push dateunknown
reviewersshaver
milestone1.9a7pre
Fix comment to say 'createInstance' when it really means that, since this is pointed to by devmo as API documentation; no bug; rs=shaver
js/src/xpconnect/loader/XPCOMUtils.jsm
--- a/js/src/xpconnect/loader/XPCOMUtils.jsm
+++ b/js/src/xpconnect/loader/XPCOMUtils.jsm
@@ -54,17 +54,17 @@
  *  MyComponent.prototype = {
  *    // properties required for XPCOM registration:
  *    classDescription: "unique text description",
  *    classID:          Components.ID("{xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx}"),
  *    contractID:       "@example.com/xxx;1",
  *
  *    // [optional] custom factory (an object implementing nsIFactory). If not
  *    // provided, the default factory is used, which returns
- *    // |(new MyComponent()).QueryInterface(iid)| in its createInterface().
+ *    // |(new MyComponent()).QueryInterface(iid)| in its createInstance().
  *    _xpcom_factory: { ... }
  *
  *    // QueryInterface implementation, e.g. using the generateQI helper
  *    QueryInterface: XPCOMUtils.generateQI(
  *      [Components.interfaces.nsIObserver,
  *       Components.interfaces.nsIMyInterface]),
  *
  *    // ...component implementation...