Jacob Pratt
cc27e3f08b
Rollup merge of #134593 - kornelski:less-unwrap, r=jhpratt
...
Less unwrap() in documentation
I think the common use of `.unwrap()` in examples makes it overrepresented, looking like a more typical way of error handling than it really is in real programs.
Therefore, this PR changes a bunch of examples to use different error handling methods, primarily the `?` operator. Additionally, `unwrap()` docs warn that it might abort the program.
2024-12-21 01:18:43 -05:00
..
2024-12-03 07:52:01 +01:00
2024-09-29 04:48:13 +02:00
2024-09-10 15:57:40 -07:00
2024-09-10 15:57:40 -07:00
2024-11-07 11:33:10 +01:00
2024-11-27 12:10:21 +00:00
2024-11-13 06:53:19 -08:00
2024-11-02 11:27:14 +01:00
2024-12-21 01:26:47 +00:00
2024-11-26 18:38:24 +01:00
2024-12-21 01:30:13 +01:00
2024-11-12 15:08:41 -06:00
2024-12-13 00:04:57 +00:00
2024-11-30 10:17:59 +01:00
2024-11-30 19:33:06 +08:00
2024-12-21 01:30:13 +01:00
2024-11-26 18:38:24 +01:00
2024-12-20 15:03:51 +01:00
2024-09-22 19:11:29 -04:00
2024-09-22 19:11:29 -04:00
2024-09-22 19:11:29 -04:00
2024-12-05 00:26:13 +00:00
2024-09-22 19:11:29 -04:00
2024-11-01 16:47:18 +01:00
2024-11-01 16:47:18 +01:00
2024-11-01 16:47:18 +01:00
2024-11-01 16:47:18 +01:00
2024-11-26 18:38:24 +01:00
2024-12-17 13:56:10 +11:00
2024-12-17 13:56:10 +11:00
2024-09-22 19:11:29 -04:00
2024-09-29 05:54:47 +00:00
2024-12-05 21:48:01 +01:00
2024-12-13 11:53:01 +01:00
2024-12-14 01:10:33 -07:00
2024-12-21 01:26:47 +00:00
2024-10-22 20:18:11 -04:00
2024-10-19 14:39:20 +01:00
2024-10-25 12:02:47 +02:00