A bug from torch.nn.ConstantPad1d

Today I use the torch.nn.ConstantPad1d as follow:

import torch

layer = torch.nn.ConstantPad1d((2, 2, 2, 2), 0)

data = torch.randn(1, 3, 224)

result = layer(data)

print(result.shape) # 1, 7, 228

I think this is the wrong way to use it.

Why does it work?