Unified · Split
| @@ -64,8 +64,8 @@ err = log.Write(1, []byte("first entry")) · 63 unmodified lines | |||
| 64 | err = log.Write(1000, []byte("thousandth entry")) | 64 | err = log.Write(1000, []byte("thousandth entry")) |
| 65 | 65 | ||
| 66 | // truncate the log from index starting 350 and ending with 950. | 66 | // truncate the log from index starting 350 and ending with 950. |
| 67 | err = l.TruncateFront(350) | 67 | err = log.TruncateFront(350) |
| 68 | err = l.TruncateBack(950) | 68 | err = log.TruncateBack(950) |
| 69 | ``` | 69 | ``` |
| 70 | 70 | ||
| 71 | 71 | ||