Before revision: In the case of a upward band bending the electric field in the depletion layer would point towards the metal.
After revision: In the canse of a upward band bending the electric field in the depletion layer would point towards the metal.