Skip to content

Commit c6f63a5

Browse files
diguagexcl(徐程林)
authored and
xcl(徐程林)
committed
Fix comment syntax in xml examples
See spring-projectsgh-25537
1 parent 39c3412 commit c6f63a5

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/docs/asciidoc/core/core-appendix.adoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,7 @@ The following example shows a path being used against another bean, by name:
242242

243243
[source,xml,indent=0,subs="verbatim,quotes"]
244244
----
245-
// target bean to be referenced by name
245+
<!-- target bean to be referenced by name -->
246246
<bean id="person" class="org.springframework.beans.TestBean" scope="prototype">
247247
<property name="age" value="10"/>
248248
<property name="spouse">
@@ -252,7 +252,7 @@ The following example shows a path being used against another bean, by name:
252252
</property>
253253
</bean>
254254
255-
// results in 11, which is the value of property 'spouse.age' of bean 'person'
255+
<!-- results in 11, which is the value of property 'spouse.age' of bean 'person' -->
256256
<bean id="theAge"
257257
class="org.springframework.beans.factory.config.PropertyPathFactoryBean">
258258
<property name="targetBeanName" value="person"/>

src/docs/asciidoc/languages/dynamic-languages.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -462,7 +462,7 @@ The following bean definition uses the calculator defined in Groovy:
462462
[source,xml,indent=0]
463463
[subs="verbatim,quotes"]
464464
----
465-
<-- from the file 'beans.xml' -->
465+
<!-- from the file 'beans.xml' -->
466466
<beans>
467467
<lang:groovy id="calculator" script-source="classpath:calculator.groovy"/>
468468
</beans>

0 commit comments

Comments
 (0)