Update function.dd

Fixed typo: "rewrie" -> "rewrite"