Skip to content

Commit 0478c3a

Browse files
Merge pull request #2389 from rabbitmq/copilot/clarify-binding-patterns-docs
Clarify that topic exchange # wildcard matches zero segments
2 parents cc816e4 + 34ad8a5 commit 0478c3a

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

docs/exchanges.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ For example,
9494

9595
* A binding (routing key) pattern of `"regions.na.cities.*"` will match message routing keys `"regions.na.cities.toronto"` and `"regions.na.cities.newyork"` but **will not** match `"regions.na.cities"`
9696
because `*` is a wildcard that matches exactly one segment
97-
* A binding (routing key) pattern `"audit.events.#"` will match `"audit.events.users.signup"` and `"audit.events.orders.placed"` but not `"audit.users"` because the second segment does not match
97+
* A binding (routing key) pattern `"audit.events.#"` will match `"audit.events"`, `"audit.events.users.signup"` and `"audit.events.orders.placed"`, but not `"audit.users"` because the second segment does not match
9898
* A binding (routing key) pattern of `"#"` will match any routing key and makes the topic exchange act like a fanout for the bindings that use such a pattern
9999

100100
See [tutorial 5](https://www.rabbitmq.com/tutorials) to see how this exchange type is used.

versioned_docs/version-4.0/exchanges.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ For example,
9494

9595
* A binding (routing key) pattern of `"regions.na.cities.*"` will match message routing keys `"regions.na.cities.toronto"` and `"regions.na.cities.newyork"` but **will not** match `"regions.na.cities"`
9696
because `*` is a wildcard that matches exactly one segment
97-
* A binding (routing key) pattern `"audit.events.#"` will match `"audit.events.users.signup"` and `"audit.events.orders.placed"` but not `"audit.users"` because the second segment does not match
97+
* A binding (routing key) pattern `"audit.events.#"` will match `"audit.events"`, `"audit.events.users.signup"` and `"audit.events.orders.placed"`, but not `"audit.users"` because the second segment does not match
9898
* A binding (routing key) pattern of `"#"` will match any routing key and makes the topic exchange act like a fanout for the bindings that use such a pattern
9999

100100
See [tutorial 5](https://www.rabbitmq.com/tutorials) to see how this exchange type is used.

versioned_docs/version-4.1/exchanges.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ For example,
9494

9595
* A binding (routing key) pattern of `"regions.na.cities.*"` will match message routing keys `"regions.na.cities.toronto"` and `"regions.na.cities.newyork"` but **will not** match `"regions.na.cities"`
9696
because `*` is a wildcard that matches exactly one segment
97-
* A binding (routing key) pattern `"audit.events.#"` will match `"audit.events.users.signup"` and `"audit.events.orders.placed"` but not `"audit.users"` because the second segment does not match
97+
* A binding (routing key) pattern `"audit.events.#"` will match `"audit.events"`, `"audit.events.users.signup"` and `"audit.events.orders.placed"`, but not `"audit.users"` because the second segment does not match
9898
* A binding (routing key) pattern of `"#"` will match any routing key and makes the topic exchange act like a fanout for the bindings that use such a pattern
9999

100100
See [tutorial 5](https://www.rabbitmq.com/tutorials) to see how this exchange type is used.

0 commit comments

Comments
 (0)