Partnership Liquidation

So I get that the sale of a partnership interest is a capital gain or loss. Partner's Basis = Capital Account + Share of Liabilities I read in Becker that ultimately the share of liabilities disappears because is cancels out but I'm not understanding the logistic behind this theory. Can someone explain? Does that mean that: Partner's Capital Account - Amount received from buyer = G/L?