Fix mistake in doc of text function