Fix possibly outdated note in 1.9.6 (instanceof)

It seems there are no polymorphic functions in this chapter.
This commit is contained in:
Vse Mozhe Buty 2020-10-29 17:34:23 +02:00 committed by GitHub
parent 2d5be7b730
commit 972c7ab36c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -2,7 +2,7 @@
The `instanceof` operator allows to check whether an object belongs to a certain class. It also takes inheritance into account.
Such a check may be necessary in many cases. Here we'll use it for building a *polymorphic* function, the one that treats arguments differently depending on their type.
Such a check may be necessary in many cases. For example, it can be used for building a *polymorphic* function, the one that treats arguments differently depending on their type.
## The instanceof operator [#ref-instanceof]