Rollup merge of #25068 - bguiz:patch-3, r=steveklabnik
Rollup merge of #25068 - bguiz:patch-3, r=steveklabnik

 - `File::open` is for opening a file in read-only mode
- `File::create` is for opening a file in write-only mode, which is what we want instead for this example to make sense

GBGamer/rust,aidancully/rust,jashank/rust,kwantam/rust,cllns/rust,TheNeikos/rust,pelmers/rust,kwantam/rust,pshc/rust,krzysz00/rust,philyoon/rust,GBGamer/rust,graydon/rust,dwillmer/rust,andars/rust,l0kod/rust,robertg/rust,KokaKiwi/rust,omasanori/rust,XMPPwocky/rust,KokaKiwi/rust,pshc/rust,victorvde/rust,pshc/rust,l0kod/rust,victorvde/rust,l0kod/rust,sae-bom/rust,philyoon/rust,robertg/rust,rohitjoshi/rust,zachwick/rust,seanrivera/rust,sae-bom/rust,krzysz00/rust,ejjeong/rust,mdinger/rust,aidancully/rust,jashank/rust,KokaKiwi/rust,zachwick/rust,vhbit/rust,graydon/rust,pelmers/rust,dwillmer/rust,jroesch/rust,aepsil0n/rust,pshc/rust,gifnksm/rust,philyoon/rust,zachwick/rust,mihneadb/rust,nwin/rust,philyoon/rust,pshc/rust,cllns/rust,zubron/rust,aneeshusa/rust,gifnksm/rust,nwin/rust,jashank/rust,mdinger/rust,philyoon/rust,jroesch/rust,andars/rust,zubron/rust,TheNeikos/rust,nwin/rust,nwin/rust,aneeshusa/rust,cllns/rust,jroesch/rust,aneeshusa/rust,kwantam/rust,philyoon/rust,graydon/rust,seanrivera/rust,GBGamer/rust,nwin/rust,andars/rust,jashank/rust,carols10cents/rust,robertg/rust,l0kod/rust,aneeshusa/rust,jroesch/rust,seanrivera/rust,omasanori/rust,aneeshusa/rust,jashank/rust,l0kod/rust,sae-bom/rust,carols10cents/rust,omasanori/rust,aidancully/rust,jashank/rust,dwillmer/rust,TheNeikos/rust,mihneadb/rust,rohitjoshi/rust,kwantam/rust,cllns/rust,pelmers/rust,andars/rust,vhbit/rust,GBGamer/rust,reem/rust,jashank/rust,mihneadb/rust,seanrivera/rust,aidancully/rust,reem/rust,krzysz00/rust,reem/rust,mvdnes/rust,seanrivera/rust,ejjeong/rust,carols10cents/rust,zubron/rust,TheNeikos/rust,zachwick/rust,dwillmer/rust,victorvde/rust,andars/rust,vhbit/rust,rohitjoshi/rust,krzysz00/rust,nwin/rust,XMPPwocky/rust,XMPPwocky/rust,seanrivera/rust,aneeshusa/rust,ejjeong/rust,krzysz00/rust,gifnksm/rust,XMPPwocky/rust,mvdnes/rust,pshc/rust,ejjeong/rust,gifnksm/rust,dwillmer/rust,vhbit/rust,rohitjoshi/rust,jashank/rust,XMPPwocky/rust,dwillmer/rust,vhbit/rust,robertg/rust,gifnksm/rust,krzysz00/rust,kwantam/rust,GBGamer/rust,omasanori/rust,mihneadb/rust,jroesch/rust,aidancully/rust,sae-bom/rust,zachwick/rust,reem/rust,pelmers/rust,sae-bom/rust,victorvde/rust,dwillmer/rust,GBGamer/rust,mvdnes/rust,rohitjoshi/rust,l0kod/rust,robertg/rust,vhbit/rust,TheNeikos/rust,mvdnes/rust,aidancully/rust,XMPPwocky/rust,cllns/rust,vhbit/rust,cllns/rust,aepsil0n/rust,sae-bom/rust,kwantam/rust,zubron/rust,omasanori/rust,GBGamer/rust,nwin/rust,l0kod/rust,aepsil0n/rust,reem/rust,mdinger/rust,zubron/rust,omasanori/rust,pshc/rust,graydon/rust,mdinger/rust,l0kod/rust,KokaKiwi/rust,KokaKiwi/rust,mdinger/rust,mdinger/rust,jroesch/rust,mihneadb/rust,pelmers/rust,GBGamer/rust,graydon/rust,jroesch/rust,jroesch/rust,aepsil0n/rust,gifnksm/rust,mihneadb/rust,pshc/rust,vhbit/rust,nwin/rust,reem/rust,carols10cents/rust,mvdnes/rust,KokaKiwi/rust,dwillmer/rust,ejjeong/rust,graydon/rust,robertg/rust,TheNeikos/rust,ejjeong/rust,rohitjoshi/rust,mvdnes/rust,zachwick/rust,victorvde/rust,pelmers/rust,aepsil0n/rust,victorvde/rust,carols10cents/rust,zubron/rust,zubron/rust,aepsil0n/rust,carols10cents/rust,andars/rust,zubron/rust