Kotlin: Clarify comment on wrapper object comparison.
Bug: 374752552
Test: ObjectTest.*
Change-Id: Ic28f585bc22eedcd9d8898c2cb2efd0ed84f48df
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/217574
Reviewed-by: Alex Benton <bentonian@google.com>
Commit-Queue: Alex Benton <bentonian@google.com>
diff --git a/generator/templates/art/api_kotlin_object.kt b/generator/templates/art/api_kotlin_object.kt
index edeee32..ae8d4af 100644
--- a/generator/templates/art/api_kotlin_object.kt
+++ b/generator/templates/art/api_kotlin_object.kt
@@ -54,8 +54,8 @@
//* By default, the equals() function implements referential equality.
//* see: https://kotlinlang.org/docs/equality.html#structural-equality
- //* We convert to structural equality (in Kotlin) which acts as referential equality check for
- //* the underlying Dawn object.
+ //* A structural comparison of the wrapper object is equivalent to a referential comparison of
+ //* the wrapped object.
override fun equals(other: Any?): Boolean =
other is {{ obj.name.CamelCase() }} && other.handle == handle
}