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 {
183
183
}
184
184
185
185
/// 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 > {
187
187
let mut string = String :: new ();
188
188
reader . read_to_string (& mut string ). await ? ;
189
189
Ok (string )
@@ -192,7 +192,7 @@ trait ?const ?async Read {
192
192
193
193
That's sure starting to feel like a lot of keywords, right? We've accurately
194
194
described 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
196
196
want to be ` ?const ?async ` . But under the syntax rules we've proposed so far,
197
197
you'd end up repeating that everywhere. And it probably gets worse once we start
198
198
adding in more keywords. Not ideal!
You can’t perform that action at this time.
0 commit comments