Browse Source

Merge examples

gingerBill 5 days ago
parent
commit
1400952530
1 changed files with 6 additions and 7 deletions
  1. 6 7
      core/reflect/doc.odin

+ 6 - 7
core/reflect/doc.odin

@@ -35,14 +35,13 @@
 // 	a: any
 // 	a: any
 // 	a.data = &x
 // 	a.data = &x
 // 	a.id   = typeid_of(type_of(x))
 // 	a.id   = typeid_of(type_of(x))
-//
-// Example:
-// 	a: any = 123
+// 	// With literals
+// 	v: any = 123
 // 	// equivalent to
 // 	// equivalent to
-// 	a: any
-// 	tmp: int = 123
-// 	a.data = &tmp
-// 	a.id   = typeid_of(type_of(tmp))
+// 	v: any
+// 	_tmp: int = 123
+// 	v.data = &_tmp
+// 	v.id   = typeid_of(type_of(_tmp))
 //
 //
 //
 //
 // `any` is a topologically-dual to a `union` in terms of its usage. Both support assignments of differing types
 // `any` is a topologically-dual to a `union` in terms of its usage. Both support assignments of differing types