# Require - clarification

**URL:** <https://forum.crystal-lang.org/t/require-clarification/1083>\
**Category:** Offtopic\
**Created:** [September 1, 2019, 8:26am UTC](https://forum.crystal-lang.org/t/require-clarification/1083 "2019-09-01T08:26:13Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![shortly-portly](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.crystal-lang.org/shortly-portly/32/528_2.png) [@shortly-portly](https://forum.crystal-lang.org/u/shortly-portly)\
**Post date:** [September 1, 2019, 8:26am UTC](https://forum.crystal-lang.org/t/require-clarification/1083/1 "2019-09-01T08:26:13Z")

</div>

Hi All

I’m just after some clarification on ‘require’ (I’m new to Crystal so still learning). The docs state that ‘require “foo”’ would look for foo in the standard library or in ‘lib’ (as either foo.cr OR foo/foo.cr). However when I require foo and foo is a Shard it will look in ‘lib/foo/src/foo.cr’ because the compiler knows foo is a Shard.

Is the above correct about Shards or have I misunderstood something.

cheers

Dave

---

<div class="post-metadata">

**Author:** ![asterite](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.crystal-lang.org/asterite/32/60_2.png) [@asterite](https://forum.crystal-lang.org/u/asterite)\
**Post date:** [September 1, 2019, 11:01am UTC](https://forum.crystal-lang.org/t/require-clarification/1083/2 "2019-09-01T11:01:35Z")

</div>

Hi and welcome!

The docs are outdated. I just sent a PR to fix this: [https://github.com/crystal-lang/crystal-book/pull/355](https://github.com/crystal-lang/crystal-book/pull/355)

---

<div class="post-metadata">

**Author:** ![shortly-portly](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.crystal-lang.org/shortly-portly/32/528_2.png) [@shortly-portly](https://forum.crystal-lang.org/u/shortly-portly)\
**Post date:** [September 1, 2019, 2:58pm UTC](https://forum.crystal-lang.org/t/require-clarification/1083/3 "2019-09-01T14:58:38Z")

</div>

Perfect - many thanks for the update. Thank you also for such a fantastic language.

cheers

Dave

---

<div class="post-metadata">

**Author:** ![asterite](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.crystal-lang.org/asterite/32/60_2.png) [@asterite](https://forum.crystal-lang.org/u/asterite)\
**Post date:** [September 1, 2019, 4:16pm UTC](https://forum.crystal-lang.org/t/require-clarification/1083/4 "2019-09-01T16:16:21Z")

</div>

It’s fixed now! 🙂
