Re: [PATCH v3 1/2] rust: Introduce file_from_location()

From: Boqun Feng
Date: Tue Jun 17 2025 - 17:57:33 EST


On Tue, Jun 17, 2025 at 08:22:19PM +0200, Miguel Ojeda wrote:
> On Tue, Jun 17, 2025 at 8:12 PM Boqun Feng <boqun.feng@xxxxxxxxx> wrote:
> >
> > How aobut something below? (I use "" instead of `` on purpose because
> > the output variable there is a string)
>
> Looks much better, thanks!
>
> > You mean it should be "with an NUL terminated"? Or it should be "with
> > a `NUL` byte terminated"?
>
> Ah, I meant that "terminated" sounded strange to me, i.e. it sounds as
> if the NUL is what is terminated. But I am not a native speaker.
>
> I would have expected e.g. "a NUL terminated string" or variations
> like "a string terminated with a NUL" or"a string with a NUL
> termination byte", if that makes sense.
>

I made it "a NUL-terminated string" to align with other parts of our
documentation in kernel::str.

Regards,
Boqun

> Cheers,
> Miguel