diff --git a/extensions/resteasy-classic/resteasy-server-common/deployment/src/main/java/io/quarkus/resteasy/server/common/deployment/ResteasyServerCommonProcessor.java b/extensions/resteasy-classic/resteasy-server-common/deployment/src/main/java/io/quarkus/resteasy/server/common/deployment/ResteasyServerCommonProcessor.java
index 10ecb5ae54627..f8bc8f674c319 100755
--- a/extensions/resteasy-classic/resteasy-server-common/deployment/src/main/java/io/quarkus/resteasy/server/common/deployment/ResteasyServerCommonProcessor.java
+++ b/extensions/resteasy-classic/resteasy-server-common/deployment/src/main/java/io/quarkus/resteasy/server/common/deployment/ResteasyServerCommonProcessor.java
@@ -142,7 +142,7 @@ static final class ResteasyConfig {
*
* - If {@literal quarkus.http.root-path=/} and {@code quarkus.resteasy.path=/bar}, the JAX-RS resource path will be
* {@literal /bar}
- * - If {@literal quarkus.http.root-path=/bar} and {@code quarkus.resteasy.path=/bar}, the JAX-RS resource path will
+ *
- If {@literal quarkus.http.root-path=/foo} and {@code quarkus.resteasy.path=/bar}, the JAX-RS resource path will
* be {@literal /foo/bar}
*
*/
diff --git a/extensions/undertow/deployment/src/main/java/io/quarkus/undertow/deployment/ServletConfig.java b/extensions/undertow/deployment/src/main/java/io/quarkus/undertow/deployment/ServletConfig.java
index bed6c90be1b01..a028318c79bda 100644
--- a/extensions/undertow/deployment/src/main/java/io/quarkus/undertow/deployment/ServletConfig.java
+++ b/extensions/undertow/deployment/src/main/java/io/quarkus/undertow/deployment/ServletConfig.java
@@ -26,7 +26,7 @@ public class ServletConfig {
*
* - If {@literal quarkus.http.root-path=/} and {@code quarkus.servlet.context-path=/bar}, the servlet path will be
* {@literal /bar}
- * - If {@literal quarkus.http.root-path=/bar} and {@code quarkus.servlet.context-path=/bar}, the servlet path will be
+ *
- If {@literal quarkus.http.root-path=/foo} and {@code quarkus.servlet.context-path=/bar}, the servlet path will be
* {@literal /foo/bar}
*
*/