doc: net: fix typo in example code