Skip to content

Commit b2fc84e

Browse files
committed
how did i manage to type that incorrectly
1 parent bcd565b commit b2fc84e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

content/language/proc/istype.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ description = "1 if Val is the same as, or a child type of, Type"
1111
+++
1212

1313
```dm
14-
var/atom/my_atom = new /obj(loc) // the variable is declared as an /atom, but we create an /obj
14+
var/mob/my_atom = new /obj(loc) // the variable is declared as a /mob, but we create an /obj
1515
if(istype(my_atom))
1616
// this will not pass, as the inferred type is different from the actual type
1717

0 commit comments

Comments
 (0)