File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -183,7 +183,7 @@ trait ?const ?async Read {
183183}
184184
185185/// Read from a reader into a string.
186- ? const ? async fn read_to_string (reader : & mut impl ? const ? async Read ) -> io :: Result <String > {
186+ const ? async fn read_to_string (reader : & mut impl ? const ? async Read ) -> io :: Result <String > {
187187 let mut string = String :: new ();
188188 reader . read_to_string (& mut string ). await ? ;
189189 Ok (string )
@@ -192,7 +192,7 @@ trait ?const ?async Read {
192192
193193That's sure starting to feel like a lot of keywords, right? We've accurately
194194described exactly what's going on, but there's a lot of repetition. We know that
195- if we're dealing with a ` ? const ?async fn` , most arguments probably will also
195+ if we're dealing with a ` const ?async fn ` , most arguments probably will
196196want to be ` ?const ?async ` . But under the syntax rules we've proposed so far,
197197you'd end up repeating that everywhere. And it probably gets worse once we start
198198adding in more keywords. Not ideal!
You can’t perform that action at this time.
0 commit comments