Browse Source

Merge pull request #2978 from fernandogrd/fix_docs_typo

Fix typo in extending docs
Ask Solem Hoel 9 years ago
parent
commit
5275f470c7
1 changed files with 1 additions and 1 deletions
  1. 1 1
      docs/userguide/extending.rst

+ 1 - 1
docs/userguide/extending.rst

@@ -46,7 +46,7 @@ whenever the connection is established:
 
     def send_me_a_message(self, who='world!', producer=None):
         with app.producer_or_acquire(producer) as producer:
-            producer.send(
+            producer.publish(
                 {'hello': who},
                 serializer='json',
                 exchange=my_queue.exchange,