The total supply limit (which btw is only 20,999,999.9769 BTC) is not explicit, but implicit [1] from its block subsidy formula as encoded in
https://github.com/bitcoin/bitcoin/blob/master/src/validation.cpp#L1811-L1822 :
CAmount GetBlockSubsidy(int nHeight, const Consensus::Params& consensusParams)
{
int halvings = nHeight / consensusParams.nSubsidyHalvingInterval;
// Force block reward to zero when right shift is undefined.
if (halvings >= 64)
return 0;
CAmount nSubsidy = 50 * COIN;
// Subsidy is cut in half every 210,000 blocks which will occur approximately every 4 years.
nSubsidy >>= halvings;
return nSubsidy;
}
It does have the number 210000 in a comment, albeit with a comma added for legibility...
[1]
https://bitcoin.stackexchange.com/questions/38994/will-there-be-21-million-bitcoins-eventually/38998#38998