|
43 | 43 | //! |
44 | 44 | //! ### String Codecs |
45 | 45 | //! |
46 | | -//! Please have look at the module [`string`](crate::string). |
| 46 | +//! Please have a look at the module [`string`](crate::string). |
47 | 47 | //! |
48 | 48 | //! #### Adapters |
49 | 49 | //! |
50 | 50 | //! - [`string::Base64`] — |
51 | | -//! Wraps a binary codec and make it a string codec by representing the binary data as a base64 string. |
| 51 | +//! Wraps a binary codec and makes it a string codec by representing the binary data as a base64 string. |
52 | 52 | //! - [`string::OptionCodec`] — |
53 | 53 | //! Wraps a string codec that encodes `T` to create a codec that encodes `Option<T>`. |
54 | 54 | //! |
55 | 55 | //! ### Binary Codecs |
56 | 56 | //! |
57 | | -//! Please have look at the module [`binary`](crate::binary). |
| 57 | +//! Please have a look at the module [`binary`](crate::binary). |
58 | 58 | //! |
59 | 59 | //! ## Custom Codecs |
60 | 60 | //! |
61 | | -//! If you don't find a suitable codecs for your needs, you can implement your own; it's straightforward! |
| 61 | +//! If you don't find a suitable codec for your needs, you can implement your own; it's straightforward! |
62 | 62 | //! If you want to create a string codec, you can look at [`string::JsonSerdeCodec`] as a starting point. |
63 | 63 | //! In case it's a binary codec, have a look at [`binary::BincodeSerdeCodec`]. |
64 | 64 | //! |
|
67 | 67 | //! Versioning is the process of handling long-term data that can outlive our code. |
68 | 68 | //! |
69 | 69 | //! For example, we could have a settings struct whose members change over time. We might eventually |
70 | | -//! add timezone support, and we might then remove support for a thousands separator for numbers. |
| 70 | +//! add timezone support, and we might then remove support for a thousand separator for numbers. |
71 | 71 | //! Each change results in a new possible version of the stored data. If we stored these settings |
72 | 72 | //! in browser storage, we would need to handle all possible versions of the data format that can |
73 | 73 | //! occur. If we don't offer versioning, then all settings could revert to the default every time we |
|
0 commit comments