Skip to content

Commit 902c1bb

Browse files
committed
spring-projects#3028 - Add support for type-safe kotlin DSL for Update API using KProperty<T>
1 parent 28a5abb commit 902c1bb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: spring-data-mongodb/src/main/kotlin/org/springframework/data/mongodb/core/query/TypedUpdateExtensions.kt

+2-2
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ fun <T> Update.pullAll(key: KProperty<Collection<T>>, values: Array<T>) =
134134
pullAll(key.toDotPath(), values)
135135

136136
/**
137-
* Update given key to current date using {@literal $currentDate : &#123; $type : "timestamp" &#125;} modifier.
137+
* Update given key to current date using {@literal $currentDate} modifier.
138138
*
139139
* @author Pawel Matysek
140140
* @see Update.currentDate
@@ -143,7 +143,7 @@ fun <T> Update.currentDate(key: KProperty<T>) =
143143
currentDate(key.toDotPath())
144144

145145
/**
146-
* Update given key to current date using {@literal $currentDate} modifier.
146+
* Update given key to current date using {@literal $currentDate : &#123; $type : "timestamp" &#125;} modifier.
147147
*
148148
* @author Pawel Matysek
149149
* @see Update.currentTimestamp

0 commit comments

Comments
 (0)