v3.25.2
Debt - Additional Information (Detail) - USD ($)
$ in Millions
12 Months Ended
Jun. 30, 2025
Jun. 30, 2024
Jun. 30, 2023
Debt Instrument [Line Items]      
Long-term debt fair value $ 40,400 $ 42,300  
Short-term debt 0 6,693  
Cash paid for interest $ 1,600 $ 1,700 $ 1,700
Commercial Paper      
Debt Instrument [Line Items]      
Short term debt, weighted average interest rate   5.40%  
Commercial Paper | Maximum      
Debt Instrument [Line Items]      
Short term borrowings maturity   152 days  
Commercial Paper | Minimum      
Debt Instrument [Line Items]      
Short term borrowings maturity   28 days